I'm trying to implement Google One Tap, with ory n...
# talk-kratos
s
I'm trying to implement Google One Tap, with ory network versions of hydra + kratos. A user can sign in via Google One Tap on a client site; the idea is to then redirect them to hydra/kratos to transparently "sign in via google" - with no user interaction required (e.g. they shouldn't have to click "sign in with google", nor choose a google account once they're on the google sign in page. Currently, I've hacked in a quick redirect from kratos => google sign in by using JS to click the "sign in with google" button on the user's behalf (quite hacky!) when
?login_hint
is present and has an email value. However, when the user lands on the google sign in page, they're prompted to choose an account. When adding
&prompt=none
to the browser's URL and refreshing the page, google correctly defaults to the "first" account; when adding
?login_hint
to the google URL, it correctly uses the corresponding account (provided the user already has a session with google). My question: is there a way to get kratos'
/self-service/login
API to send
?login_hint={}
and
?prompt={}
to social IDPs?