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

 

'Front-End > Vue & Nuxt' 카테고리의 다른 글

Nuxt.js window or document undefined  (0) 2022.03.05
Nuxt.js Quill Editor  (0) 2022.03.04
Nuxt.js Lottie 사용하기  (0) 2022.02.27
Eslint Babel정리  (0) 2022.02.27
Nuxt.js Buefy Pagination  (0) 2022.02.26

+ Recent posts