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

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

register(strategy, params, options)

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

Attempt to register a new user.

sign_in(strategy, params, options)

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

Attempt to sign in a user.