Use nhost.auth.createPAT to create a personal access token for the user.

Parameters


expiresAt required Date Expiration date for the token
metadata optional Record<string, string | number> Optional metadata to store with the token