Gamend.OAuthSessions (gamend_core v1.0.1192)

Copy Markdown View Source

Helpers for creating and retrieving short-lived OAuth sessions.

Summary

Functions

create_session(session_id, attrs \\ %{})

@spec create_session(String.t(), map()) ::
  {:ok, Gamend.OAuthSession.t()} | {:error, Ecto.Changeset.t()}

get_session(session_id)

@spec get_session(String.t()) :: Gamend.OAuthSession.t() | nil

update_session(session_id, attrs)

@spec update_session(String.t(), map()) ::
  {:ok, Gamend.OAuthSession.t()} | {:error, Ecto.Changeset.t()} | :not_found