Expose accessToken from accounts database #1522
Replies: 5 comments
-
Take a look at TypeORM query builder. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep it open. (Read more at #912) Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same problem. (just trying to make the bot not close the issue) |
Beta Was this translation helpful? Give feedback.
-
not sure about the OPs problem. You can get anything out from the account object in both the signIn and the jwt callback. Check the documentation. https://next-auth.js.org/configuration/callbacks do I miss something? |
Beta Was this translation helpful? Give feedback.
-
Summary of proposed feature
I'm using the Discord OAuth sign in, and would like to interface with the API using the Discord-OAuth2 package on NPM, but I can't get the
accessToken
that's in theaccounts
database.Purpose of proposed feature
Allow people to interface with the APIs that they use with this package.
Potential problems
None that I can think of.
Describe any alternatives you've considered
A hacky method of using an ORM and getting the token by finding by some unique identifier, in my case, find the user in the
users
database by email, use their_id
(using MongoDB) to find their account inaccounts
, then using theaccessToken
from that.Please indicate if you are willing and able to help implement the proposed feature.
Most likely not.
Beta Was this translation helpful? Give feedback.
All reactions