Skip to content
LogoLogo

zone.getAuthorizationTokenInfo

Returns the authenticated account address and token expiry from the current authorization token.

Usage

import { client } from './zones.config'
 
const info = await client.zone.getAuthorizationTokenInfo()
 
console.log('Account:', info.account)
console.log('Expires At:', info.expiresAt)
Account: 0x...
Expires At: 1717027200

Return Type

type ReturnType = {
  account: Address
  expiresAt: number
}