Skip to content

fix(example): incorrect callback urls after stripping route prefix#295

Open
persidskiy wants to merge 1 commit into
go-pkgz:masterfrom
persidskiy:ps/fix-example
Open

fix(example): incorrect callback urls after stripping route prefix#295
persidskiy wants to merge 1 commit into
go-pkgz:masterfrom
persidskiy:ps/fix-example

Conversation

@persidskiy

Copy link
Copy Markdown

Fixes the wrong redirect url in the example.

Step to reproduce:

  1. set up google provider in _example/main.go, run the app
  2. open http://localhost:8080/web, click google
  3. google oauth handler errors with Error 400: redirect_uri_mismatch

This happens due to r.URL.Path being /google/login instead of /auth/google/login in LoginHander https://github.com/go-pkgz/auth/blob/master/v2/provider/oauth2.go#L143 .

@persidskiy persidskiy requested a review from umputun as a code owner June 22, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant