
token replaces ( accessTokenUrl, headers, params)įor more details on their usage, please see options section of the OAuth Provider documentation.authorization (replaces authorizationUrl, authorizationParams, scope).The following new options are available when defining your Providers in the configuration: If you need this scope, please add user to the scope option manually.
USESESS FULL
The GitHub provider by default now will not request full write access to user profiles.The Basecamp provider has been removed, see explanation here.The AzureADB2C provider has been renamed AzureAD.The best practice for wrapping your app in Providers is to do so in your pages/_app.jsx file.Īn example use-case with these new changes: clientMaxAge has been removed in favor of refetchInterval, as they overlap in functionality, with the difference that refetchInterval will keep re-fetching the session periodically in the background.keepAlive has been renamed to refetchInterval.The options prop is now flattened as the props of SessionProvider.The SessionProvider has also undergone a few further changes: This means that you will have to wrap any part of your application using useSession in this provider, if you were not doing so already. Version 4 makes using the SessionProvider mandatory. options: Not exposed anymore, use SessionProvider props.


We've also made the following changes to the names of the exports:
