JmapAuth

sealed interface JmapAuth(source)

Authentication for JMAP requests.

Inheritors

Types

Link copied to clipboard
class Basic(val username: String, val password: String) : JmapAuth

Authorization: Basic, with username and (app) password.

Link copied to clipboard
class Bearer(val token: suspend () -> String) : JmapAuth

Authorization: Bearer <token>, e.g. an API token or OAuth 2.0 access token.