PowAssent v0.1.0 PowAssent.Phoenix.ViewHelpers View Source

View helpers to render authorization links.

Link to this section Summary

Functions

Generates list of provider links

Link to this section Functions

Link to this function provider_link(conn, provider, providers_for_user) View Source
provider_link(Conn.t(), atom(), [atom()]) :: Phoenix.HTML.safe()

Generates a provider link.

If the user is signed in, and has a provider, it’ll link to removal of the provider authorization.

Link to this function provider_links(conn) View Source
provider_links(Conn.t()) :: [Phoenix.HTML.safe()]

Generates list of provider links.