Added endpoint for shares

This commit is contained in:
2026-03-04 14:23:09 +01:00
parent 2f4e0bb8ce
commit 91997686d1
7 changed files with 102 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
package auth
import (
"os"
"time"
"github.com/golang-jwt/jwt/v5"
@@ -13,8 +12,6 @@ type Claims struct {
jwt.RegisteredClaims
}
var secret = os.Getenv("SHAP_JWT_SECRET")
func GenerateJWT(userID, role string, secret []byte) (string, error) {
claims := Claims{
UserID: userID,