Check authentication from jwt on all routes
This commit is contained in:
@@ -37,3 +37,7 @@ func InitKey() error {
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func GetJwtKey() ([]byte, error) {
|
||||
return base64.URLEncoding.DecodeString(os.Getenv(getKeyVariableName()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user