Skip to main content

ThirdwebAuthConfig interface

This feature is currently in beta and may change based on feedback that we receive.

The configuration to use the react SDK with an [auth](https://portal.thirdweb.com/auth) server.

Signature:

export interface ThirdwebAuthConfig

Properties

PropertyModifiersTypeDescription
authUrlstring(BETA) The backend URL of the authentication endoints. For example, if your endpoints are at /api/auth/login, /api/auth/logout, etc. then this should be set to /api/auth.
domainstring(BETA) The frontend domain used to generate the login payload. This domain should match the domain used on your auth backend.
loginRedirect?string(BETA) (Optional) The URL to redirect to after a succesful login.