auth

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtGenerateFastenTokenFromUser

func JwtGenerateFastenTokenFromUser(user models.User, issuerSigningKey string) (string, error)

JwtGenerateFastenTokenFromUser Note: these functions are duplicated, in Fasten Cloud Any changes here must be replicated in that repo

Types

type UserMetadata

type UserMetadata struct {
	FullName string `json:"full_name"`
	Picture  string `json:"picture"`
	Email    string `json:"email"`
}

type UserRegisteredClaims

type UserRegisteredClaims struct {
	UserMetadata
	jwt.RegisteredClaims
}

func JwtValidateFastenToken

func JwtValidateFastenToken(encryptionKey string, signedToken string) (*UserRegisteredClaims, error)

Jump to

Keyboard shortcuts

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