File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -239,25 +239,27 @@ export const KindeProvider = ({
239239 const accessToken = tokens ?. accessToken ;
240240 const refreshToken = tokens ?. refreshToken ;
241241
242- await Promise . all ( [
243- fetch ( `${ domain } /logout` ) ,
242+ await fetch ( `${ domain } /logout` ) ,
244243 refreshToken &&
245244 fetch ( `${ domain } /oauth2/revoke` , {
246245 method : "POST" ,
247246 body : JSON . stringify ( {
248247 token : refreshToken ,
248+ client_id : clientId ,
249+ token_type : "refresh_token" ,
249250 } ) ,
250251 headers : {
251252 "Content-Type" : "application/json" ,
252253 Authorization : `Bearer ${ accessToken } ` ,
253254 } ,
254255 } ) ,
255- ] ) ;
256256 if ( accessToken ) {
257257 await fetch ( `${ domain } /oauth2/revoke` , {
258258 method : "POST" ,
259259 body : JSON . stringify ( {
260260 token : accessToken ,
261+ client_id : clientId ,
262+ token_type : "access_token" ,
261263 } ) ,
262264 headers : {
263265 "Content-Type" : "application/json" ,
You can’t perform that action at this time.
0 commit comments