ExOauth2Provider v0.5.5 ExOauth2Provider.AccessTokens.AccessToken View Source
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
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
changeset(token, params, config \\ [])
View Sourcechangeset(Ecto.Schema.t(), map(), keyword()) :: Ecto.Changeset.t()