tokenToId

suspend fun tokenToId(type: TokenType, code: String): String

Decodes a token into server-side id, its type and expiration time.