Clerk (Clerk SDK v2.0.0)
clerk is a library for authenticating with ClerkJS.
Installation
The package can be installed by adding clerk to your list of dependencies in mix.exs:
def deps do
[
{:clerk, "~> 2.0"}
]
endUsage
Configuration
config :clerk,
domain: "example.clerk.accounts.dev"In your application's supervisor:
children = [
...
{Clerk, Application.get_all_env(:clerk)},
...
]
Summary
Functions
Returns the default %Clerk.Config{} from config :clerk.
Callback implementation for Supervisor.init/1.
Functions
Link to this function
config()
Returns the default %Clerk.Config{} from config :clerk.
Use this when you want to pass config explicitly without building a custom
%Clerk.Config{} for multi-tenant setups:
children = [{Clerk, Clerk.config()}]
Clerk.User.list(%{}, config: Clerk.config())
Link to this function
init(config)
Callback implementation for Supervisor.init/1.
Link to this function