Rename getStateFromQueryParams() and getQueryParamsFromState()

This commit is contained in:
Gucheng Wang
2022-09-09 02:02:32 +08:00
parent 10f1c37730
commit cfce5289ed
3 changed files with 4 additions and 4 deletions

View File

@ -177,7 +177,7 @@ export function getAuthUrl(application, provider, method) {
let endpoint = authInfo[provider.type].endpoint;
const redirectUri = `${window.location.origin}/callback`;
const scope = authInfo[provider.type].scope;
const state = Util.getQueryParamsToState(application.name, provider.name, method);
const state = Util.getStateFromQueryParams(application.name, provider.name, method);
if (provider.type === "Google") {
return `${endpoint}?client_id=${provider.clientId}&redirect_uri=${redirectUri}&scope=${scope}&response_type=code&state=${state}`;