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 existence for loggedIn check
        name: 'XSRF-TOKEN',
      },
      endpoints: {
        // (optional) If set, we send a get request to this endpoint before login
        csrf: {
          url: ''
        }
      }
    },
  }
}
Edit this page on GitHub Updated at Wed, Oct 20, 2021