updated for using .env
This commit is contained in:
@@ -5,8 +5,6 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var jwtKey = []byte("your-secret-key") //TODO: Move to env/config
|
||||
|
||||
func GetCurrentUserID(w http.ResponseWriter, r *http.Request)(int){
|
||||
currentUserID := r.Context().Value("user_id").(int)
|
||||
return currentUserID
|
||||
|
||||
Reference in New Issue
Block a user