Stripe Dashboard login (Google SSO)
Log into the Stripe Dashboard with Continue with Google, handling the Google account chooser and consent screen. Returns straight away if you are already signed in, and reports the Stripe user email. If Stripe asks for a two-step verification code it stops and says so instead of attempting it. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that is already a Stripe user.
Input
email optionalGoogle account to pick in the chooser. Omit to use the first account listed.
Output
url requiredalready requiredtrue when a session already existed and no sign-in was needed
loggedIn requiredaccount optionalStripe user email
FAQ
Stripe Dashboard whoami (signed-in account)
Report which Stripe Dashboard user this browser is signed in as: the user email. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Stripe Dashboard scripts.
Invite team member (Stripe)
Invite someone into a Stripe team by email, with built-in verification. It records the member list and the pending invitations before and after the action, returning invited / verified / collateralChange — proof the right person was added and nobody else moved. Stripe membership is invite-based: the invitee stays pending until they accept, so this reports an invitation, not an active member. The role you ask for is matched against your account's own role list and defaults to the least privileged one; roles your account is not allowed to grant are reported up front with the list of ones it can. Stripe sometimes asks you to confirm your identity before it will apply a team change — when that happens the invitation is refused and this stops with a clear explanation instead of reporting success, so complete that confirmation in the dashboard and run it again. dryRun (default true) fills the form and stops before sending. Requires being signed into Stripe with team permissions. Pair with dashboard.stripe.com/delete_user, which also cancels a pending invite.
Remove team member (Stripe)
Remove a member from a Stripe team by email, or cancel an invitation they never accepted. It reads the team list before and after, so it reports whether the person is gone and whether anyone else changed, along with their role and last sign-in. It only removes the person the confirmation names. By default it stops at the confirmation without removing; set dryRun to false to remove. The account owner cannot be removed. Requires being signed into Stripe with team permissions.
