docs: add caveat description

This commit is contained in:
Prad Nukala
2024-10-28 10:12:05 -04:00
parent b1422bc97e
commit bbfd3e5171
11 changed files with 212 additions and 152 deletions
+1
View File
@@ -47,6 +47,7 @@ func GetSessionID(c echo.Context) string {
// GetSessionChallenge returns the session challenge from the cookies.
func GetSessionChallenge(c echo.Context) (*protocol.URLEncodedBase64, error) {
// TODO: Implement a way to regenerate the challenge if it is invalid.
chal := new(protocol.URLEncodedBase64)
// Attempt to read the session challenge from the "session" cookie
sessionChal, err := ReadCookie(c, CookieKeySessionChal)