auth

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

auth/auth.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(email, password string) (string, error)

AuthenticateUser validates the user and generates a JWT token

Types

type Claims

type Claims struct {
	Email    string `json:"email"`
	ID       uint   `json:"id"`
	Username string `json:"username"`
	FullName string `json:"full_name"`
	jwt.StandardClaims
}

Claims defines the structure of the JWT payload

Jump to

Keyboard shortcuts

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