Skip to content

Instantly share code, notes, and snippets.

@frague59
Created January 6, 2021 09:42
Show Gist options
  • Save frague59/661964e46821c31526fdaac449888aea to your computer and use it in GitHub Desktop.
Save frague59/661964e46821c31526fdaac449888aea to your computer and use it in GitHub Desktop.
auth: {
strategies: {
local: {
scheme: 'refresh',
token: {
property: 'access',
data: 'access',
maxAge: 60 * 30 // 30 minutes
},
refreshToken: {
property: 'refresh',
data: 'refresh',
maxAge: 60 * 60 * 24 * 30 // 30 days
},
user: {
property: 'user'
},
endpoints: {
login: {url: '/api/token/', method: 'post'},
refresh: {url: '/api/token/refresh/', method: 'post'},
user: {url: '/api/users/', method: 'get'}
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment