await

abstract fun await(): Principal

Blocks until the caller has approved at url, then returns the principal, whose user id is the one the authenticator resolves.

Throws

(xtdb.authn/failed) if the authorisation fails or expires.