oidc dashboard login
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ async function add(token) {
|
||||
if (error) throw error;
|
||||
|
||||
const id = 'tid-' + uuid.v4();
|
||||
const accessToken = hat(8 * 32);
|
||||
const accessToken = token.accessToken || hat(8 * 32);
|
||||
|
||||
await database.query('INSERT INTO tokens (id, accessToken, identifier, clientId, expires, scopeJson, name) VALUES (?, ?, ?, ?, ?, ?, ?)', [ id, accessToken, identifier, clientId, expires, JSON.stringify(scope), name ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user