Cookie

Source Code

cookie is an extended version of local scheme, which instead of using a token, depends on cookie set by auth provider.

Options

NOTE: All local scheme options are also supported.

auth: {
  strategies: {
    cookie: {
      cookie: {
        // (optional) If set we check this cookie exsistence for loggedIn check
        name: 'XSRF-TOKEN',
      }
    },
    endpoints: {
      // (optional) If set, we send a get request to this endpoint before login
      xsrf: {
        url: ''
      }
    }
  }
}

On this page