Hierarchy

Constructors

Properties

redirectUri: string

The redirect URI that Lit's login server should send the user back to

Methods

  • Validate the URL parameters returned from Lit's login server and return the authentication data

    Returns

    • Auth method object that contains OAuth token

    Type Parameters

    Parameters

    • Optional _: T
    • Optional urlCheckCallback: ((currentUrl: string, redirectUri: string) => boolean)
        • (currentUrl: string, redirectUri: string): boolean
        • Parameters

          • currentUrl: string
          • redirectUri: string

          Returns boolean

    Returns Promise<AuthMethod>

  • Redirect user to the Lit's Google login page

    Returns

    • Redirects user to Lit login page

    Parameters

    • Optional callback: ((url: string) => void)

      Optional callback to handle login URL

        • (url: string): void
        • Parameters

          • url: string

          Returns void

    Returns Promise<void>

Generated using TypeDoc