Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware handles CORS headers and preflight requests
func GetUserEmail ¶
GetUserEmail retrieves the authenticated user's email from context
func GetUserInfo ¶
GetUserInfo retrieves all user info from context
func GoogleAuthMiddleware ¶
func GoogleAuthMiddleware() gin.HandlerFunc
GoogleAuthMiddleware validates Google OAuth ID tokens Only enforces authentication when running on Cloud Run
func IsCloudRun ¶
func IsCloudRun() bool
IsCloudRun checks if the application is running on Google Cloud Run
func LogAuthInfo ¶
LogAuthInfo logs authentication information (useful for debugging)
func OptionalAuthMiddleware ¶
func OptionalAuthMiddleware() gin.HandlerFunc
OptionalAuthMiddleware checks for authentication but doesn't enforce it Useful for endpoints that can work with or without auth
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.