Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nuxt auth no provider

auth: {
  strategies: {
    local: {
      scheme: 'refresh',
      token: {
        property: 'access_token',
        maxAge: 1800,
        global: true,
        // type: 'Bearer'
      },
      refreshToken: {
        property: 'refresh_token',
        data: 'refresh_token',
        maxAge: 60 * 60 * 24 * 30
      },
      user: {
        property: 'user',
       // autoFetch: true
      },
      endpoints: {
        login: { url: '/api/auth/login', method: 'post' },
        refresh: { url: '/api/auth/refresh', method: 'post' },
        user: { url: '/api/auth/user', method: 'get' },
        logout: { url: '/api/auth/logout', method: 'post' }
      },
      // autoLogout: false
    }
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: nuxt js index.html not found 
Javascript :: how to change in website with node js 
Javascript :: 00979fb28f7cc517ff28c035bb8ef10698d0d991304e9901ba214ad0cada69ef:script- 
Javascript :: SHOPIFY CUSTOMER WITHOUT REGISTRATION 
Javascript :: convert json results 
Javascript :: what is the opposite of lazy initialization 
Javascript :: Fix the transition judder at 0/60 seconds javascript30 js clock 
Javascript :: JS equal sibling btns height 
Javascript :: formulaire sauvegarde local storage jquery 
Javascript :: nextjs update ui when data is updated 
Javascript :: declerative and imperative program combine 
Javascript :: && in react jsx 
Javascript :: SH1 in react native 
Javascript :: vue format number as dollars 
Javascript :: how to create dynamic radio button in jquery 
Javascript :: Return Instance Of Object 
Javascript :: react jsx hello react sample 
Javascript :: asynchronous file reading 
Javascript :: javascript code for adding scroll to top of page 
Javascript :: vs code shortkey to launch snippet 
Javascript :: can we Plot observale for ejs 
Javascript :: select 2 is not working in nodejs 
Javascript :: vertical lineal star pattern javascript 
Javascript :: JS function examples 
Javascript :: rpushx redis 
Javascript :: js button that starts programe 
Javascript :: how to return true or false based on condition by looping arrayin react 
Javascript :: remove element 
Javascript :: swift urlsession remote json 
Javascript :: multply js 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =