View Source AshAuthentication.Strategy.OAuth2.Actions (ash_authentication v4.0.0)

Actions for the oauth2 strategy.

Provides the code interface for working with resources via an OAuth2 strategy.

Summary

Functions

Attempt to register a new user.

Attempt to sign in a user.

Functions

Link to this function

register(strategy, params, options)

View Source
@spec register(AshAuthentication.Strategy.OAuth2.t(), map(), keyword()) ::
  {:ok, Ash.Resource.record()} | {:error, any()}

Attempt to register a new user.

Link to this function

sign_in(strategy, params, options)

View Source
@spec sign_in(AshAuthentication.Strategy.OAuth2.t(), map(), keyword()) ::
  {:ok, Ash.Resource.record()} | {:error, any()}

Attempt to sign in a user.