mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 21:14:32 +00:00
fix oauth data
This commit is contained in:
parent
b2ea03383c
commit
a40cc82538
1 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,8 @@ export class OAuth2ProviderService {
|
|||
const ret = {
|
||||
access_token: atData.accessToken,
|
||||
token_type: 'Bearer',
|
||||
scope: body.scope || 'read write follow push',
|
||||
created_at: Math.floor(new Date().getTime() / 1000),
|
||||
scope: atData.scope || body.scope || 'read write follow push',
|
||||
created_at: atData.createdAt || Math.floor(new Date().getTime() / 1000),
|
||||
};
|
||||
return reply.send(ret);
|
||||
} catch (e: unknown) {
|
||||
|
|
Loading…
Add table
Reference in a new issue