Website SDK Installation
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 [email protected]~4.3.0
You may get a warning about axios being a peer dependency for this package. If you only use fetch for your API calls you can safely ignore this warning.
<script>
Using Put the following anywhere in your <head>
tag
<script src="https://cdn.jsdelivr.net/gh/supertokens/[email protected]/bundle/bundle.js"></script>