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:
- Sets the provider email (e.g. Gmail) as your verified recovery address
- Allocates a unique username and your
@daaymail.commailbox - Activates that single mailbox right away
- Fills in
firstName/lastNamefrom 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.
Link Google or Apple later
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.
