Skip to content

Commit 57982ba

Browse files
committed
chore: add accessToken to docs
1 parent 72b4250 commit 57982ba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/auth0-auth-js/EXAMPLES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,11 @@ const tokenResponseForGoogle = await authClient.getTokenForConnection({ connecti
350350
```
351351
352352
- `refreshToken`: The refresh token to use to retrieve the access token.
353+
- `accessToken`: The access token to use to retrieve the access token.
353354
- `connection`: The connection for which an access token should be retrieved, e.g. `google-oauth2` for Google.
354-
- `loginHint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
355+
- `loginHint`: Optional login hint to inform which connection account to use, can be useful when multiple accounts for the connection exist for the same user.
356+
357+
Either the `refreshToken` or `accessToken` parameter can be specified, but not both.
355358
356359
Note that, when using `google-oauth2`, it's required to set both `authorizationParams.access_type` and `authorizationParams.prompt` to `offline` and `consent` respectively when building the authorization URL.
357360

0 commit comments

Comments
 (0)