From 84c392dea1dd4a8b9bff36f72b0198ba00287bf0 Mon Sep 17 00:00:00 2001 From: Mitar Date: Fri, 1 Dec 2023 14:48:14 -0800 Subject: [PATCH] Update finish loging example. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a18e4b5d..244c5987 100644 --- a/README.md +++ b/README.md @@ -163,8 +163,14 @@ func FinishLogin(w http.ResponseWriter, r *http.Request) { return } + + // Handle credential.Authenticator.CloneWarning + + // If login was successful, update the credential object + // Pseudocode to update the user credential. + user.UpdateCredential(credential) + datastore.SaveUser(user) - // If login was successful, handle next steps JSONResponse(w, "Login Success", http.StatusOK) } ```