while trying to login through facebook in my storefront by local server .Its get not working it is passing error like http://localhost redirects are automatically allowed while in development mode only and do not need to be added here. and then while i'm using ngrok https://68d2-2401-4900-1ce3-70e6-7999-f0f3-b8e3-e535.in.ngrok.io it also not working and i'm getting The url https://68d2-2401-4900-1ce3-70e6-7999-f0f3-b8e3-e535.in.ngrok.io has been identified as malicious and/or abusive. now is any way to make facebook developers console to work
#Facebook login
43 messages · Page 1 of 1 (latest)
Can you share you developer console config please? Maybe some screenshots
what error do you get when not using ngrock and just hitting with localhost? It is saying that in dev mode, localhost is accepted automatically
yah but its not working
this is my error while hitting with local host
it just means that when working on localhost you don't have to fill it
in regards to the app is not active, you can look at this https://stackoverflow.com/questions/73193526/app-not-active-this-app-is-not-currently-accessible-and-the-app-developer-is-aw#:~:text=You get that error because,account meets either condition above.
@astral yarrow can u help to fix this
have you done what is suggested in the error message?
yes while i'm adding app domains and adding https local host after ngrok its also no working this is the error what i'm getting
have you configured that one?
you should look into stackoverflow as well if you don't find it easy. Multiple people encounter that issue while testing on localhost
can i able to use mkcert
you would have to create a custom entry point. e.g in the route directory create index.js and your start script can run it instead of medusa develop. You can look at the medusa-start entry point to get inspiration from
i tried by this whether it is correct
Use node instead of react-scripts
const https = require('https');
const fs = require('fs');
const options = {
key: fs.readFileSync('{PATH/TO/CERTIFICATE-KEY-FILENAME}.pem'),
cert: fs.readFileSync('{PATH/TO/CERTIFICATE-FILENAME}.pem'),
};
https
.createServer(options, function (req, res) {
// server code
})
.listen({PORT});
can i set this in my server
@astral yarrow where i need to set node in server
In your command. Plus, is that your entry point? If it is it is not inspired from the medusa start entry point isn’t it?
yah
Dont forget the loader etc
sorry what i need to do now can u tell from scratch
where i want to place this server.js
const https = require('https');
const fs = require('fs');
const options = {
key: fs.readFileSync('{PATH/TO/CERTIFICATE-KEY-FILENAME}.pem'),
cert: fs.readFileSync('{PATH/TO/CERTIFICATE-FILENAME}.pem'),
};
https
.createServer(options, function (req, res) {
// server code
})
.listen({PORT});
@astral yarrow plz can u help me
@astral yarrow
Please, don't mention directly, I also have work to do on my side and me or anybody can answer you when they have time
yah ok sorry
is there is any other way then ngrok to convert my localserver to https.
Yes using a custom entry point and passing the cert to nodejs https
So something like that to i spire you https://github.com/medusajs/medusa/blob/master/packages/medusa/src/commands/start.js and then you can find on google how to start express server with https
what do you mean?