• Example

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

    const apiConfig = await Showpad.getShowpadOAuthApi(
    '<clientId>',
    '<clientSecret>',
    '<allowedEmails>',
    '<password>',
    )

    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.

    • password: string

      The password of the current user.

    Returns Promise<ApiConfig>

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

Generated using TypeDoc