View Source ExOauth2Provider.AccessTokens.AccessToken (ExOauth2Provider v0.5.7)

Handles the Ecto schema for access token.

Usage

Configure lib/my_project/oauth_access_tokens/oauth_access_token.ex the following way:

defmodule MyApp.OauthAccessTokens.OauthAccessToken do
  use Ecto.Schema
  use ExOauth2Provider.AccessTokens.AccessToken

  schema "oauth_access_tokens" do
    access_token_fields()

    timestamps()
  end
end

Summary

Types

Functions

Link to this macro

access_token_fields()

View Source (macro)
Link to this function

changeset(token, params, config \\ [])

View Source
@spec changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()