Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Provider access token #394

Open
wants to merge 9 commits into
base: oauth-providers
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/views/docs/oauth-providers/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,7 @@ let account = Account(client)
let session = try await account.updateSession(
sessionId: "current"
)
```
```
## Accessing the Provider Access Token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you include full code examples for each platform like other examples?


After the user has been authorized and redirected back to your app, you can find their GitHub provider access token in the [session object](https://appwrite.io/docs/models/session) by accessing the `providerAccessToken` property. This access token can be used to make requests to the GitHub API on their behalf.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think more context is needed here, why would someone need to use this access token? I would start by explaining what they are.