update token generation
This commit is contained in:
parent
fab0cc51b3
commit
735687be21
4 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ export default define(meta, async (ps, user) => {
|
|||
}
|
||||
|
||||
// Generate access token
|
||||
const accessToken = rndstr('a-zA-Z0-9', 32);
|
||||
const accessToken = '1' + rndstr('a-zA-Z0-9', 15);
|
||||
|
||||
// Fetch exist access token
|
||||
const exist = await AccessTokens.findOne({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue