import { Auth } from '@aimee-blue/ab-contracts'; import { minimallyValidateJwt } from '@aimee-blue/ab-auth'; import { callFn } from '../api'; import { currentSelfSignedToken } from './selfSignedTokens'; export async function verifyToken( param: Auth.IVerifyParams ): Promise { await minimallyValidateJwt(param.token); const authToken = await currentSelfSignedToken(); return await callFn('authVerify')(param, { authToken, }); }