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
I'm currently trying to learn OAuth2 but struggeling with some things.
I have a Nuxt.js project in frontend and a backend with a REST api.
I can sign in with Github using Nuxt/Auth. It works very well. But there's something I can't get my head around.
Is it safe to store the Secret Key in nuxt.config.js?
I assume yes since the docs say so but I cant understand why.
I'm guessing the Code to Access token request is only sent server side?
But what happens if config the nuxt app to have client side rendering? Won't the user be able to see the Secret in the request?
This discussion was converted from issue #1209 on January 21, 2022 09:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently trying to learn OAuth2 but struggeling with some things.
I have a Nuxt.js project in frontend and a backend with a REST api.
I can sign in with Github using Nuxt/Auth. It works very well. But there's something I can't get my head around.
Is it safe to store the Secret Key in nuxt.config.js?
I assume yes since the docs say so but I cant understand why.
I'm guessing the Code to Access token request is only sent server side?
But what happens if config the nuxt app to have client side rendering? Won't the user be able to see the Secret in the request?
Beta Was this translation helpful? Give feedback.
All reactions