WaspW
Wasp12mo ago
maksym36ua

Issue with Google Redirect URL while migrating 0.12.4 -> 0.13.0

Hey folks!

Decided to migrate my app according to this guide: https://wasp-lang.dev/docs/migration-guides/migrate-from-0-12-to-0-13#migrate-your-oauth-setup. Getting redirect_uri_mismatch, upon further inspection there's a flowName=GeneralOAuthFlow being added at the end of the callback URL which was not the case before. I'm using googleSignInUrl from the auth package

Code:
import { logout, useAuth, googleSignInUrl } from "wasp/client/auth";
...
<Button variant="teal" size={{ base: "md", md: "lg" }} onClick={e => { window.location.href = googleSignInUrl; }}>
image.png
Was this page helpful?