You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I used patch-package to patch remix-auth-oauth2@3.2.0 for the project I'm working on.
We set a different cookieName, and on oauth2 return, it was breaking as the callback did not use the cookieName.
Here is the diff that solved my problem:
diff --git a/node_modules/remix-auth-oauth2/build/index.js b/node_modules/remix-auth-oauth2/build/index.js
index 4a3ee82..7fca029 100644
--- a/node_modules/remix-auth-oauth2/build/index.js+++ b/node_modules/remix-auth-oauth2/build/index.js@@ -58,7 +58,7 @@ export class OAuth2Strategy extends Strategy {
let code = url.searchParams.get("code");
if (!code)
throw new ReferenceError("Missing code in the URL");
- let store = StateStore.fromRequest(request);+ let store = StateStore.fromRequest(request, this.cookieName);
if (!store.has()) {
throw new ReferenceError("Missing state on cookie.");
}
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
remix-auth-oauth2@3.2.0
for the project I'm working on.We set a different cookieName, and on oauth2 return, it was breaking as the callback did not use the cookieName.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: