auth.getCanvaUserToken

API reference for the auth.getCanvaUserToken method.

Returns a JSON Web Token (JWT) that contains information about the current user.

This token must be decoded and verified via the app's backend.

The verified token is an object with the following properties:

  • appId - The ID of the app.
  • teamId - The ID of the user's team.
  • userId - The ID of the user.

To learn how to decode and verify JWTs, see JSON Web Tokens.

A JSON Web Token (JWT) that contains information about the current user.

Promise<CanvaUserToken>