Logo
Explore Help
Register Sign In
sovonegr/neomovies-api
1
0
Fork 0
You've already forked neomovies-api
mirror of https://gitlab.com/foxixus/neomovies-api.git synced 2025-10-28 09:58:50 +05:00
Code Issues Packages Projects Releases Wiki Activity
Files
ea3159fb8ef6586d2f8844658c992c1df0f4689a
neomovies-api/pkg/handlers/auth_helpers.go

8 lines
109 B
Go
Raw Normal View History

Add Google OAuth
2025-08-08 16:47:02 +00:00
package handlers
import (
"github.com/google/uuid"
)
feat: implement JWT refresh token mechanism and improve auth - Add refresh token support with 30-day expiry - Implement automatic token rotation on refresh - Add new endpoints: /auth/refresh, /auth/revoke-token, /auth/revoke-all-tokens - Reduce access token lifetime to 1 hour for better security - Store refresh tokens in user document with metadata - Add support for token cleanup and management - Update login flow to return both access and refresh tokens - Maintain backward compatibility with existing auth methods
2025-09-28 11:37:56 +00:00
func uuidNew() string { return uuid.New().String() }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 30ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API