-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add token to amplify context state and make param in api context prov…
…ider
- Loading branch information
1 parent
9e25fb8
commit 609a0be
Showing
11 changed files
with
183 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import React, { ReactElement } from "react"; | ||
import { JWT } from "@aws-amplify/auth"; | ||
type AmplifyContextType = { | ||
domain?: string; | ||
region?: string; | ||
identityPoolId?: string; | ||
userPoolId?: string; | ||
userPoolClientId?: string; | ||
token: JWT | null; | ||
}; | ||
export declare const AmplifyContext: React.Context<AmplifyContextType | null>; | ||
export default function AmplifyContextProvider(props: { | ||
children?: ReactElement; | ||
domain?: string; | ||
region?: string; | ||
identityPoolId?: string; | ||
userPoolId?: string; | ||
userPoolClientId?: string; | ||
identityPoolId?: string; | ||
fetchAuthSession: Function; | ||
getCurrentUser: Function; | ||
signOut?: Function; | ||
}): React.JSX.Element; | ||
export {}; | ||
//# sourceMappingURL=AmplifyContextProvider.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.