Gets a JSON Web Token (JWT) for the current user.
To learn more, see Verifying HTTP requests.
Usage
import { auth } from "@canva/user";(async () => {const token = await auth.getCanvaUserToken();console.log(token);})();
Returns
A Promise
that resolves with the following string:
Required
The JSON Web Token for the current user.