codeToId

suspend fun codeToId(type: OpaqueIdType, code: String): String

Decodes opaque session id ("code") into server-side id, validating code purpose (type) and expiration time.