File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/core/src/singleton Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export class AuthClass {
49
49
50
50
/**
51
51
* Fetch the auth tokens, and the temporary AWS credentials and identity if they are configured. By default it
52
- * does not refresh the auth tokens or credentials if they are loaded in storage already . You can force a refresh
53
- * with `{ forceRefresh: true }` input.
52
+ * will automatically refresh expired auth tokens if a valid refresh token is present . You can force a refresh
53
+ * of non-expired tokens with `{ forceRefresh: true }` input.
54
54
*
55
55
* @param options - Options configuring the fetch behavior.
56
56
*
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import { fetchAuthSession as fetchAuthSessionInternal } from './internal/fetchAu
8
8
9
9
/**
10
10
* Fetch the auth session including the tokens and credentials if they are available. By default it
11
- * does not refresh the auth tokens or credentials if they are loaded in storage already . You can force a refresh
12
- * with `{ forceRefresh: true }` input.
11
+ * will automatically refresh expired auth tokens if a valid refresh token is present . You can force a refresh
12
+ * of non-expired tokens with `{ forceRefresh: true }` input.
13
13
*
14
14
* @param options - Options configuring the fetch behavior.
15
15
* @throws {@link AuthError } - Throws error when session information cannot be refreshed.
You can’t perform that action at this time.
0 commit comments