GraphQLAuthProvider

public class GraphQLAuthProvider : AWSCognitoUserPoolsAuthProviderAsync

SudoUserClient based authentication provider implementation to be used by AWS AppSync client.

  • Initializes GraphQLAuthProvider with SudoUserClient.

    Declaration

    Swift

    public init(client: SudoUserClient, autoRefreshTokens: Bool = true)

    Parameters

    client

    ‘SudoUserClient’ instance for issueing authentication tokens.

    authRefreshTokens

    if ‘true’ ID token will be refreshed automatically as long as the refresh token has not expired.