mirror of
https://github.com/logto-io/logto.git
synced 2025-02-10 21:58:23 -05:00
* feat(connector): add Xiaomi social login connector * chore: update README and pnpm lock * chore: update changeset * fix(connector): fix connector-xiaomi test fail & enhance error handling * refactor(connector): remove unnecessary logs and code --------- Co-authored-by: Charles Zhao <charleszhao@silverhand.io>
26 lines
578 B
TypeScript
26 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',
|
|
},
|
|
};
|