View Source Bonfire.API.GraphQL.Auth (Bonfire v0.9.11-social-beta.6)

Summary

Functions

Resolver for login mutation for Bonfire.API.GraphQL.CommonSchema

Puts the account/user data in Absinthe context (runs after on login/3 resolver)

Sets session cookie based on the Absinthe context set in set_context_from_resolution/2 (called from router's absinthe_before_send/2 )

Functions

account_by(account)

build_context(conn)

login(_, attrs, _)

Resolver for login mutation for Bonfire.API.GraphQL.CommonSchema

select_user(_, attrs, info)

set_context_from_resolution(resolution, _)

Puts the account/user data in Absinthe context (runs after on login/3 resolver)

set_session_from_context(conn, arg2)

Sets session cookie based on the Absinthe context set in set_context_from_resolution/2 (called from router's absinthe_before_send/2 )

token_new(ids)

token_verify(token)

user_by(arg)

user_by(username_or_user_id, account)

username(user)