Add Link API.

This commit is contained in:
Yang Luo
2021-04-19 01:14:41 +08:00
parent 6774b0379c
commit 36895801f0
14 changed files with 143 additions and 43 deletions

View File

@ -43,6 +43,10 @@ export function getAuthLogo(provider) {
}
export function getAuthUrl(application, provider, method) {
if (application === null || provider === null) {
return "";
}
const redirectUri = `${window.location.origin}/callback`;
const state = Util.getQueryParamsToState(application.name, provider.name, method);
if (provider.type === "Google") {