View Source Ueberauth.Strategy.Mastodon.OptionsParser (ueberauth_mastodon v0.3.0)

Parses configuration secrets at runtime.

Summary

Functions

@spec from_conn!(conn :: Plug.Conn.t()) :: options :: Keyword.t()

Similar to Ueberauth.Strategy.Helpers.options/1 except it also parses secrets with Ueberauth.Strategy.Mastodon.Secret.parse_secret/1

If any required options are missing or invalid, it will raise.