Skip to content
Daaysorn
Esc
navigateopen⌘Jpreview
On this page

Signing in with Google

First Google sign-in creates your username and Daaymail address automatically.

You can also start with Google (or any configured social provider). On your first sign-in the server:

  1. Sets the provider email (e.g. Gmail) as your verified recovery address
  2. Allocates a unique username and your @daaymail.com mailbox
  3. Activates that single mailbox right away
  4. Fills in firstName / lastName from the provider profile
POST BASE/v1/api/auth/sign/in/social
Content-Type: application/json

{
  "provider": "google",
  "callbackURL": "https://app.example.com/dashboard",
  "errorCallbackURL": "https://app.example.com/auth/error"
}

Complete the provider redirect. Returning users with a linked account sign in without re-provisioning. Linking Google to an existing Daaysorn session (POST /v1/api/user/link/social) does not rewrite username or mailbox.

If the provider email is already used as another account’s recovery email, signup fails — sign in to that account and link the provider instead.

You can link more providers to an existing account, even when the provider email is different from yours. List and unlink under the user account routes. Linking never creates a second mailbox.

Was this page helpful?