View Source Bonfire.API.GraphQL.Auth (Bonfire v0.9.10-classic-beta.169)

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

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

Link to this function

select_user(_, attrs, info)

View Source
Link to this function

set_context_from_resolution(resolution, _)

View Source

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

Link to this function

set_session_from_context(conn, arg2)

View Source

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

Link to this function

user_by(username_or_user_id, account)

View Source