mirror of
https://github.com/logto-io/logto.git
synced 2025-02-10 21:58:23 -05:00
27 lines
578 B
TypeScript
27 lines
578 B
TypeScript
|
export const mockedConfig = {
|
||
|
clientId: '<client-id>',
|
||
|
clientSecret: '<client-secret>',
|
||
|
redirectUri: 'http://localhost:3000/callback',
|
||
|
skipConfirm: true,
|
||
|
};
|
||
|
|
||
|
export const mockedAccessTokenResponse = {
|
||
|
access_token: 'access_token',
|
||
|
expires_in: 3600,
|
||
|
refresh_token: 'refresh_token',
|
||
|
scope: '1',
|
||
|
openId: 'openId',
|
||
|
union_id: 'union_id',
|
||
|
};
|
||
|
|
||
|
export const mockedUserInfoResponse = {
|
||
|
result: 'ok',
|
||
|
code: 0,
|
||
|
description: 'no error',
|
||
|
data: {
|
||
|
miliaoNick: 'Test User',
|
||
|
unionId: 'union_id',
|
||
|
miliaoIcon: 'https://avatar.example.com/user.jpg',
|
||
|
},
|
||
|
};
|