Skip to content

Commit

Permalink
[PROTO-1667] Add DDEX sessions and admin+artist auth (#7645)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Feb 20, 2024
1 parent 04bb965 commit eaacf44
Show file tree
Hide file tree
Showing 40 changed files with 1,075 additions and 587 deletions.
3 changes: 2 additions & 1 deletion docs/docs/developers/sdk-oauth-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Enables the Audius OAuth functionality. Call this before using any other `oauth`

**Params**

- successCallback `(profile: UserProfile) => void` - function to be called when the user successfully authorizes or authenticates with Audius. This function will be called with the user's profile information, which is an object with the following shape:
- successCallback `(profile: UserProfile, encodedJwt: string) => void` - function to be called when the user successfully authorizes or authenticates with Audius. This function will be called with the user's profile information, which is an object with the following shape:

```typescript
// `UserProfile` type:
Expand All @@ -41,6 +41,7 @@ Enables the Audius OAuth functionality. Call this before using any other `oauth`
iat: string; // timestamp for when auth was performed
}
```
The second argument (`encodedJwt`) is for advanced use cases that want to pass the JWT to a backend for server-side verification.

- errorCallback _optional_ `(errorMessage: string) => void` - function to be called when an error occurs during the authentication flow. This function will be called with a string describing the error.

Expand Down
Loading

0 comments on commit eaacf44

Please sign in to comment.