//
pkg.gl
Category
github.com/wwi21seb-projekt/server-beta
internal
middleware
package
0.0.0-20240728120420-5df9c1d22f7a
Repository:
https://github.com/wwi21seb-projekt/server-beta.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
37 SLOC
#
Functions
AuthorizeUser
AuthorizeUser validates token and attaches username of user to request, if token invalid aborts with error.
GetLoggedInUsername
GetLoggedInUsername returns the username of the logged-in user and true if the user is logged in.