Documentation
¶
Index ¶
- func APIKeyMiddleware(c *gin.Context)
- func CORSMiddleware() gin.HandlerFunc
- func DynamicAuthMiddleware(c *gin.Context)
- func HMACVerificationMiddleware(c *gin.Context)
- func JWTMiddleware(c *gin.Context)
- func OnlyProviderMiddleware(c *gin.Context)
- func OnlySenderMiddleware(c *gin.Context)
- func OnlyWebMiddleware(c *gin.Context)
- func PrivyMiddleware(c *gin.Context)
- func RateLimitMiddleware() gin.HandlerFunc
- type LinkedAccount
- type PrivyClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyMiddleware ¶
APIKeyMiddleware is a middleware to handle API key authentication
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware is a middleware that adds CORS headers to response
func DynamicAuthMiddleware ¶
DynamicAuthMiddleware is a middleware that dynamically selects the authentication method
func HMACVerificationMiddleware ¶
HMACVerificationMiddleware is a middleware for HMAC verification. It verifies the HMAC signature in the Authorization header of the request.
func JWTMiddleware ¶
JWTMiddleware is a middleware to handle JWT authentication
func OnlyProviderMiddleware ¶
OnlyProviderMiddleware is a middleware that checks if the user scope is provider.
func OnlySenderMiddleware ¶
OnlySenderMiddleware is a middleware that checks if the user scope is sender.
func OnlyWebMiddleware ¶
OnlyWebMiddleware is a middle that checks your Client-Type and allows for auth
func PrivyMiddleware ¶
PrivyMiddleware verifies the access token from a Privy (privy.io) login
func RateLimitMiddleware ¶
func RateLimitMiddleware() gin.HandlerFunc
RateLimitMiddleware applies rate limiting based on the request type (authenticated/unauthenticated)