Project Auth V2

Update Project Auth Method

Changed on

Changes an identity provider's audiences, an email method's link_domain, or either's enabled flag; omitted fields are kept. A field that does not apply to the method's type is a 400. The type, issuer and app_user_id_claim cannot change (a different claim is a 400): add a new method instead. Disabling the last enabled method while the mode is required is a 409. A 403 means Superwall Auth is not available to the project yet. Requires projects:write scope.

patch/v2/projects/{id}/auth/methods/{method_id}

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/projects/{id}/auth/methods/{method_id}
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required
method_idstring required

Request body

audiencesstring[]

Accepted aud values: bundle ids for apple, OAuth client ids for google, the Firebase project id for firebase, the client id or API audience for oidc. A token must name at least one.

app_user_id_claimstring

The ID token claim whose value becomes the app user id. Defaults to sub.

link_domainstring nullable

email only. null stops sending the link.

enabledboolean

Response

Success

OR

Changes