-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[A0CLI-4] feat: initial implementation of try-login #8
Conversation
This comment has been minimized.
This comment has been minimized.
fb13079
to
e63f4ae
Compare
m.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | ||
authCode := r.URL.Query().Get("code") | ||
if authCode == "" { | ||
_, _ = w.Write([]byte("<p>❌ Unable to extract code from request, please try authenticating again</p>")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also do fmt.Fprint(w, ...)
to avoid the underscore checks IIRC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bunch of random non blocking nits, otherwise
Hmm, I can't get it to work. What am I doing wrong? Screen.Recording.2021-01-25.at.2.19.57.PM.mov |
@cyx I added a |
Duh! Works now! smooth like pudding |
https://auth0team.atlassian.net/browse/A0CLI-4
NOTE: This now works, but could probably use some UX/UI love.
try-login-demo-4.mov