database

package
v0.0.0-...-a6acc86 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindUserByAPIKey

func FindUserByAPIKey(db *gen.DB, apiKey string) (*gen.User, error)

FindUserByAPIKey finds the user by JWT information

func FindUserByJWT

func FindUserByJWT(db *gen.DB, id string, email string, provider string) (*gen.User, error)

FindUserByJWT finds the user by JWT information

func UpsertUserProfile

func UpsertUserProfile(db *gen.DB, input *goth.User) (u *gen.User, err error)

UpsertUserProfile saves the user if doesn't exists and adds the OAuth profile

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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