Skip to main content

If you are using our backend SDK that is lesser than the following versions, please visit the older documentation link here.

Making requests from the frontend

By default, SuperTokens SDK (or the browser itself) handles adding the access token to all requests. No authorisation token must be added to requests when calling the graphQL API.

Using Apollo Client#

ApolloClient uses fetch underneath and we add the SuperTokens interceptor to fetch and XHR automatically when you call supertokens.init. So no action needs to be taken here.

Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI