Website SDK Installation
Note: This docs is only for reference, and not a step by step guide for how to implement SuperTokens. For a guide, please see the Session recipe docs.
This library provides a wrapper around fetch
or axios
to automatically refresh a session in case the access token has expired.
npm
Using npm i --save supertokens-website@^5.1.0
<script>
Using Put the following anywhere in your <head>
tag
<script src="https://cdn.jsdelivr.net/gh/supertokens/[email protected]/bundle/bundle.js"></script>