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
@type t() :: Ecto.Schema.t()
Functions
@spec changeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()