packages/js-sdk/src/user/mic/loginWithPopup.ts
Function loginWithPopup
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function loginWithPopup(clientId: string, redirectUri: string, version?: string | number): Promise<string> {
return new Promise(async (resolve, reject) => {
const url = formatKinveyAuthUrl(`/${getVersion(version)}/oauth/auth`, {
client_id: clientId,
redirect_uri: redirectUri,