0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-10 21:58:23 -05:00
logto/packages/connectors/connector-xiaomi/src/mock.ts
u0x01 3fa2b796e6
feat(connector): add Xiaomi social login connector (#6905)
* 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>
2024-12-30 20:02:12 +08:00

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',
},
};