File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react/src/contexts/Asgardeo Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,30 +97,30 @@ export type AsgardeoContextProps = {
97
97
* @example
98
98
* signInOptions: { prompt: "login", fidp: "OrganizationSSO" }
99
99
*/
100
- signInOptions ? : SignInOptions ;
100
+ signInOptions : SignInOptions ;
101
101
/**
102
102
* Function to retrieve the decoded ID token.
103
103
* This function decodes the ID token and returns its payload.
104
104
* It can be used to access user claims and other information contained in the ID token.
105
105
*
106
106
* @returns A promise that resolves to the decoded ID token payload.
107
107
*/
108
- getDecodedIdToken ? : ( ) => Promise < IdToken > ;
108
+ getDecodedIdToken : ( ) => Promise < IdToken > ;
109
109
110
110
/**
111
111
* Retrieves the access token stored in the storage.
112
112
* This function retrieves the access token and returns it.
113
113
* @remarks This does not work in the `webWorker` or any other worker environment.
114
114
* @returns A promise that resolves to the access token.
115
115
*/
116
- getAccessToken ? : ( ) => Promise < string > ;
116
+ getAccessToken : ( ) => Promise < string > ;
117
117
118
118
/**
119
119
* Swaps the current access token with a new one based on the provided configuration (with a grant type).
120
120
* @param config - Configuration for the token exchange request.
121
121
* @returns A promise that resolves to the token response or the raw response.
122
122
*/
123
- exchangeToken ? : ( config : TokenExchangeRequestConfig ) => Promise < TokenResponse | Response > ;
123
+ exchangeToken : ( config : TokenExchangeRequestConfig ) => Promise < TokenResponse | Response > ;
124
124
} & Pick < AsgardeoReactConfig , 'storage' > ;
125
125
126
126
/**
You can’t perform that action at this time.
0 commit comments