Improve OAuth params.

This commit is contained in:
Yang Luo
2021-08-01 11:20:06 +08:00
parent 3be7d3b273
commit 629ae5a54b
6 changed files with 338 additions and 12 deletions

View File

@ -82,9 +82,12 @@ export function getOAuthGetParameters(params) {
const redirectUri = queries.get("redirect_uri");
const scope = queries.get("scope");
const state = queries.get("state");
if (clientId === undefined) {
if (clientId === undefined || clientId === null) {
// login
return null;
} else {
// code
return {
clientId: clientId,
responseType: responseType,