rift_login_apple
Sign in to or create a Rift Finance account with a client-supplied Apple identity token; include displayName on first sign-in to unlock authenticated tools.
Instructions
Sign in (or sign up on first use) with an Apple identity token. The frontend obtains the idToken from 'Sign in with Apple' — authorization.id_token from AppleID.auth.signIn() on web, the identity token from ASAuthorizationAppleIDCredential on iOS, or expo-apple-authentication on RN. NOT something the agent can produce — ask the user / client for the idToken. Apple only delivers email/name on the FIRST sign-in (and only the privaterelay alias if 'Hide My Email' is on); pass displayName then. Apple-bound accounts are NOT locked to Apple — email/OTP still works for users with a non-relay email on file. After this call, all authenticated tools work.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idToken": "<idToken>"
},
"name": "rift_login_apple"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idToken | Yes | Apple identity token (JWT) obtained on the frontend | |
| referrer | No | Optional referral code — propagated only on first sign-in (account creation) | |
| displayName | No | First+last name composed by the client. Apple only delivers this on first sign-in — capture and forward it then. |