auth

package
v0.0.0-...-d3ca574 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureValidTokenMiddleware

func EnsureValidTokenMiddleware(domain, audience string) gin.HandlerFunc

EnsureValidTokenMiddleware is gin middleware to verify the authenticity of a JWT token sent from a client to authenticated endpoints

func GetUserIdFrom

func GetUserIdFrom(ctx *gin.Context) string

GetUserIdFrom gets the registered users ID from the gin context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL