Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose accessToken from accounts database #955

Closed
jackmerrill opened this issue Dec 14, 2020 · 5 comments
Closed

Expose accessToken from accounts database #955

jackmerrill opened this issue Dec 14, 2020 · 5 comments
Labels
enhancement New feature or request help needed The maintainer needs help due to time constraint/missing knowledge

Comments

@jackmerrill
Copy link

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 the accounts 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 in accounts, then using the accessToken from that.

Please indicate if you are willing and able to help implement the proposed feature.
Most likely not.

@jackmerrill jackmerrill added the enhancement New feature or request label Dec 14, 2020
@balazsorban44 balazsorban44 added the help needed The maintainer needs help due to time constraint/missing knowledge label Dec 14, 2020
@naillizard
Copy link

Take a look at TypeORM query builder.

@zvshka

This comment has been minimized.

@stale
Copy link

stale bot commented Mar 13, 2021

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!

@stale stale bot added the stale Did not receive any activity for 60 days label Mar 13, 2021
@almeidx
Copy link

almeidx commented Mar 14, 2021

I'm facing the same problem. (just trying to make the bot not close the issue)

@balazsorban44
Copy link
Member

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?

@nextauthjs nextauthjs locked and limited conversation to collaborators Mar 14, 2021
@stale stale bot removed the stale Did not receive any activity for 60 days label Mar 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request help needed The maintainer needs help due to time constraint/missing knowledge
Projects
None yet
Development

No branches or pull requests

5 participants