Auth Login writed. Not checked.

This commit is contained in:
valitovgaziz
2024-08-12 10:11:28 +05:00
parent fb15e6e0e0
commit 1d0b4530d0
5 changed files with 108 additions and 51 deletions
+2 -4
View File
@@ -1,16 +1,14 @@
package models
import (
"os"
"github.com/golang-jwt/jwt/v4"
)
var jwtKey = []byte(os.Getenv("SECRET_KEY"))
type Crenetials struct {
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
Phone string `json:"phone"`
}
type Claims struct {