mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-09 05:24:34 +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 = {
|
const ret = {
|
||||||
access_token: atData.accessToken,
|
access_token: atData.accessToken,
|
||||||
token_type: 'Bearer',
|
token_type: 'Bearer',
|
||||||
scope: body.scope || 'read write follow push',
|
scope: atData.scope || body.scope || 'read write follow push',
|
||||||
created_at: Math.floor(new Date().getTime() / 1000),
|
created_at: atData.createdAt || Math.floor(new Date().getTime() / 1000),
|
||||||
};
|
};
|
||||||
return reply.send(ret);
|
return reply.send(ret);
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue