✨ feat(oauth): Add certification component for handling OAuth login callbacks and improve user authentication flow
This commit is contained in:
@@ -74,6 +74,7 @@ export const useGlobalStore = create<GlobalStore>((set) => ({
|
||||
subscribe_domain: '',
|
||||
pan_domain: false,
|
||||
},
|
||||
oauth_methods: [],
|
||||
},
|
||||
user: undefined,
|
||||
setCommon: (common) =>
|
||||
|
||||
+2
@@ -161,6 +161,7 @@ declare namespace API {
|
||||
invite: InviteConfig;
|
||||
currency: CurrencyConfig;
|
||||
subscribe: SubscribeConfig;
|
||||
oauth_methods: string[];
|
||||
};
|
||||
|
||||
type GetStatResponse = {
|
||||
@@ -227,6 +228,7 @@ declare namespace API {
|
||||
type OAthLoginRequest = {
|
||||
/** google, facebook, apple, telegram, github etc. */
|
||||
method: string;
|
||||
redirect: string;
|
||||
};
|
||||
|
||||
type OAuthLoginResponse = {
|
||||
|
||||
Reference in New Issue
Block a user