Skip to content

Commit

Permalink
docs: update finish loging example (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar authored Dec 1, 2023
1 parent 5719110 commit f23bfd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
```
Expand Down

0 comments on commit f23bfd6

Please sign in to comment.