add verification check and support

This commit is contained in:
AceDataCloud committed 2023-02-11 12:18:53 +08:00
1 parent 538dfd283e
commit 91c6792c5c
10 files changed
+90 -16

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
export * from './baseUrl';
export * from './env';
export * from './mode';
export * from './verification';
+12
View File
@@ -0,0 +1,12 @@
/**
* Get verification url
* @returns
*/
import { getAuthBaseUrl } from './baseUrl';
export const getVerificationUrl = () => {
const baseUrl = getAuthBaseUrl();
const targetUrl = `${baseUrl}/user/verify?redirect=` + window.location.href;
return targetUrl;
};