Created
January 6, 2021 09:42
-
-
Save frague59/661964e46821c31526fdaac449888aea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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