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: 1717027200import { privateKeyToAccount } from 'viem/accounts'
import { createClient } from 'viem/tempo'
import { http, zoneModerato } from 'viem/tempo/zones'
export const client = createClient({
account: privateKeyToAccount('0x...'),
chain: zoneModerato(7),
transport: http(),
})Return Type
type ReturnType = {
account: Address
expiresAt: number
}