DripDrop.Channels.Email.OAuthToken (DripDrop v0.1.0)

Copy Markdown View Source

Retrieves and caches host-owned OAuth access tokens for email providers.

DripDrop never performs OAuth flows or stores refresh tokens. This module calls the adapter's token_callback and caches only the returned access token until its expiry.

Summary

Functions

Returns a cached OAuth access token or refreshes one with the adapter callback.

Functions

get(adapter, provider)

@spec get(map(), atom()) :: {:ok, binary()} | {:error, term()}

Returns a cached OAuth access token or refreshes one with the adapter callback.