Optimized login system
This commit is contained in:
@@ -4,6 +4,7 @@ type User struct {
|
||||
ID string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type Expense struct {
|
||||
10
models/loginmodels.go
Normal file
10
models/loginmodels.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type RefreshToken struct {
|
||||
ID string `json:id`
|
||||
UserID string `json:userid`
|
||||
Token string `json:token`
|
||||
ExpiresAt time.Time `json:expiresat`
|
||||
}
|
||||
Reference in New Issue
Block a user