Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 716 Bytes

File metadata and controls

35 lines (27 loc) · 716 Bytes
id title
strava
Strava

Documentation

http://developers.strava.com/docs/reference/

Options

The Strava Provider comes with a set of default options:

You can override any of the options to suit your own use case. Ensure the redirect_uri configuration fits your needs accordingly.

Example

import Providers from 'next-auth/providers'
...
providers: [
  Providers.Strava({
    clientId: process.env.STRAVA_CLIENT_ID,
    clientSecret: process.env.STRAVA_CLIENT_SECRET,
    authorization: {
      params: {
        scope: process.env.STRAVA_SCOPES,
      },
    },
  })
]
...