docs: README, CHANGELOG and skill for @rudder/sdk 0.1.0 with generated module clients
This commit is contained in:
@@ -101,7 +101,7 @@ await client.auth.unlinkIdentity('custom:my-backend');
|
||||
`google`, `apple`, `custom`, or `custom:<name>`.
|
||||
|
||||
Linked identities appear on the player profile:
|
||||
`client.player.data.identities: PlayerProfileIdentity[]` with
|
||||
`client.player.value.identities: PlayerProfileIdentity[]` with
|
||||
`{ provider: string; subject: string; createdAt: string }`.
|
||||
|
||||
## Environments
|
||||
@@ -113,10 +113,6 @@ the client API takes an environment argument, and a player created in one
|
||||
environment is invisible in the other. Content released only to `staging` is
|
||||
empty for a `prod` key and vice versa.
|
||||
|
||||
Tokens issued before SDK 2.0.0 carry no environment claim and are rejected with
|
||||
401. The transport's refresh then fails, clears the token store and emits
|
||||
`'signed-out'` — log the player in again.
|
||||
|
||||
## Auth state
|
||||
|
||||
```ts
|
||||
@@ -165,7 +161,7 @@ backends (sessionStorage, cookies).
|
||||
|
||||
## Errors
|
||||
|
||||
- Constructor: missing `baseUrl`/`projectKey` → `RudderError`,
|
||||
- `createClient`: missing `projectKey` → `RudderError`,
|
||||
`code: 'sdk/invalid-options'`.
|
||||
- Login failure → `RudderHttpError` (e.g. unknown project key) or
|
||||
`RudderNetworkError`.
|
||||
|
||||
Reference in New Issue
Block a user