session

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(userID uint, auth goth.User) (tokenString string, err error)

Types

type UserSession

type UserSession struct {
	ID       uint      `json:"id"`
	Provider string    `json:"provider"`
	Token    string    `json:"token"`
	AuthUser goth.User `json:"auth_user"`
}

func UnmarshalSession

func UnmarshalSession(tokenString string) (sess UserSession, err error)

Jump to

Keyboard shortcuts

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