Function getShowpadOAuthApiInteractive

  • Example

    import { Showpad } from '@showpad/experience-app-sdk'

    const apiConfig = await Showpad.getShowpadOAuthApiInteractive(
    '<clientId>',
    '<clientSecret>',
    '<allowedEmails>',
    '<passwordModalConfig>',
    )

    Parameters

    • clientId: string

      The clientId of the OAuth Client.

    • clientSecret: string

      The secret of the OAuth Client.

    • allowedEmails: string[]

      Array of email addresses that are allowed to use the OAuth Client. An empty array will allow ALL users to use the OAuth Client so be careful.

    • Optional passwordModalConfig: PasswordModalConfig

      Configuration of the password prompt modal.

    Returns Promise<ApiConfig>

    Object with the required information to do an HTTP request to the Showpad API.

Generated using TypeDoc