Kinvey/js-sdk

View on GitHub
packages/js-sdk/src/user/mic/loginWithPopup.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function loginWithPopup has 35 lines of code (exceeds 25 allowed). Consider refactoring.
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,
Severity: Minor
Found in packages/js-sdk/src/user/mic/loginWithPopup.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status