How can I get the accessToken using Slack Provider? #2289
-
Question 💬I want to use this npm for OAuth authentication with Slack. {
"user": {
"name": "Firstname Lastname",
"email": "[email protected]",
"image": "https://avatars.slack-edge.com/2021-07-01/xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxx_512.jpg"
},
"expires": "2021-07-30T21:59:33.820Z"
} I would like to send this token to the backend and validate the token with the auth.test API provided by Slack. How can I get the accessToken? How to reproduce ☕️I have used the following URL to set up the system. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We only expose a subset of values by default for increased security, but you can configure it. See the docs: https://next-auth.js.org/configuration/callbacks#jwt-callback https://next-auth.js.org/configuration/callbacks#session-callback https://next-auth.js.org/configuration/providers#using-a-custom-provider |
Beta Was this translation helpful? Give feedback.
We only expose a subset of values by default for increased security, but you can configure it. See the docs:
https://next-auth.js.org/configuration/callbacks#jwt-callback
https://next-auth.js.org/configuration/callbacks#session-callback
https://next-auth.js.org/configuration/providers#using-a-custom-provider
https://next-auth.js.org/providers/slack#options