Mangatsu/server

Parse or save the UserAgent of login requests to have a meaningful session name

Closed this issue · 1 comments

Either

  • Save the raw user agent as the session name and let client handle the parsing
  • OR
  • Parse the UserAgent and save the result

token, err := newJWT(*userUUID, "", credentials.ExpiresIn, credentials.SessionName, role)

This is a frontend issue as next-auth always sends node-fetch/1.0 (+https://github.com/bitinn/node-fetch) as the user agent.

Made the name a bit user-friendlier here Mangatsu/web@1589f6a