oAuth2 refreshToken (@byteowls/capacitor-oauth2)

@byteowls/capacitor-oauth2 - npm (here’s the plugin i’m mentioning)

Hey.

I’m looking for a way to get a new token with refreshToken.

Since the original plugin method is not supported for web (only ios/android) I made my own method for refreshing the token.

I send a request but the response header does not contain “allow-access-control-origin” therefore i get a cors error.

Is there anyway i can fix this from FE (i’m willing to change plugin if necessary)? Has anyone faced a similar issue?

Thanks in advance.