Skip to content

createPAT()

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


expiresAt required Date

Expiration date for the token


metadata optional Record<string, string | number>

Optional metadata to store with the token