We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039a3c9 commit 37896cbCopy full SHA for 37896cb
1 file changed
packages/auth/src/loginWithRocketChatOAuth.ts
@@ -45,6 +45,9 @@ width=800,height=600,left=-1000,top=-1000,rel=opener`;
45
return new Promise<any>((resolve) => {
46
if (popup) {
47
const onMessage = async (e: MessageEvent) => {
48
+ if (e.origin !== new URL(config.api.baseUrl).origin) {
49
+ return;
50
+ }
51
if (e.data.type === "rc-oauth-callback") {
52
const { accessToken, expiresIn, serviceName } = e.data.credentials;
53
const response = await config.api.post("/api/v1/login", {
0 commit comments