auth

package
v0.1.0-alpha.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMutation

func AuthMutation(ctx context.Context, email string, password string) (*models.User, string, error)

AuthMutation authenticates a user/password combo Assume we want a mutation for this @graphql authUser Mutation @graphqlreturn user @graphqlreturn token

func Authenticate

func Authenticate(ctx context.Context, email string, password string) (user *models.User, token string, err error)

Authenticate authenticates a user/password combo @graphql authUser Query

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL