-
Hi I've got my project setup with GitHub OAuth following closely with the express example project. My intention is to use the access token from GitHub to make API calls (to GitHub). My main question is just where should I store this token? Could I simply add a new column to the user table and store it there? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I would store it in a separate table and would also store the refresh token to enable a token refresh without an user interaction. But you could also store it in the user table. But make sure you don't expose it and make it public to the client. ( I assume you knew this already. If not, now you know it ;) ) |
Beta Was this translation helpful? Give feedback.
-
@noxify @dtgreene How do I hook into Lucia to grab the access token? |
Beta Was this translation helpful? Give feedback.
I would store it in a separate table and would also store the refresh token to enable a token refresh without an user interaction.
But you could also store it in the user table.
But make sure you don't expose it and make it public to the client. ( I assume you knew this already. If not, now you know it ;) )