import { get } from '@auth/database' ; import { INVALID_TOKEN_NAMESPACE } from '@auth/constants' ; export async function verifyToken ( token ) { const record = await get ( `${ INVALID_TOKEN_NAMESPACE }:${ token }` ) ; return record === null ; }