You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Although clientSecret is a required property in AuthHandlerParams and is internally available, cookie adapter in createCookieAdapter still takes its own value from process.env['CLIENT_SECRET']. This is unusable, when the environment variable needs to have a different name or come from a different source.
To Reproduce
Steps to reproduce the behavior:
Leave the CLIENT_SECRET env variable undefined
Pass a clientSecret to getSessionStore as a constant string
Call getSessionStore
Session token fails to verify inside cookie adapter because process.env['CLIENT_SECRET'] is undefined
Expected behavior
The cookie adapter can take the client secret from the params passed to getSessionStore(params)
Additional context
Pull request will be provided.
The text was updated successfully, but these errors were encountered:
Describe the bug
Although
clientSecret
is a required property in AuthHandlerParams and is internally available, cookie adapter increateCookieAdapter
still takes its own value fromprocess.env['CLIENT_SECRET']
. This is unusable, when the environment variable needs to have a different name or come from a different source.To Reproduce
Steps to reproduce the behavior:
CLIENT_SECRET
env variable undefinedgetSessionStore
as a constant stringgetSessionStore
process.env['CLIENT_SECRET']
is undefinedExpected behavior
The cookie adapter can take the client secret from the params passed to
getSessionStore(params)
Additional context
Pull request will be provided.
The text was updated successfully, but these errors were encountered: