Front-End/Vue & Nuxt
Nuxt.js Auth (Naver)
Vicapor
2022. 3. 1. 16:04
https://auth.nuxtjs.org/schemes/oauth2
Introduction
Zero-boilerplate authentication support for Nuxt.js!
auth.nuxtjs.org
https://vicapor.tistory.com/80
nuxt.config.js
naver: {
scheme: 'oauth2',
clientId: process.env.NAVER_CLIENT_ID,
codeChallengeMethod: '',
responseType: 'code',
// grantType: 'authorization_code',
endpoints: {
authorization: 'https://nid.naver.com/oauth2.0/authorize',
token: `${baseURL}/social-login/naver/`,
userInfo: `${baseURL}/user/`,
},
token: {
property: 'access_token',
type: 'Bearer',
maxAge: 18000
},
},
this.$auth.loginWith("naver");
https://auth.nuxtjs.org/api/auth
Introduction
Zero-boilerplate authentication support for Nuxt.js!
auth.nuxtjs.org