OAuth2

class OAuth2(val username: String, val accessToken: suspend () -> String) : SmtpAuth(source)

Authenticate with an OAuth 2.0 access token using OAUTHBEARER (RFC 7628) or XOAUTH2.

Constructors

Link copied to clipboard
constructor(username: String, accessToken: suspend () -> String)

Properties

Link copied to clipboard
val accessToken: suspend () -> String
Link copied to clipboard
open override val username: String

Functions

Link copied to clipboard
open override fun toString(): String