#Facebook login

43 messages · Page 1 of 1 (latest)

fervent scroll
#

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

astral yarrow
#

Can you share you developer console config please? Maybe some screenshots

fervent scroll
#

can u see it

astral yarrow
#

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

fervent scroll
#

this is the error while using localhost

#

while using ngrok im getting this

fervent scroll
#

this is my error while hitting with local host

astral yarrow
# fervent scroll

it just means that when working on localhost you don't have to fill it

#
fervent scroll
#

@astral yarrow now i'm getting this error

#

can u help me to fix this

fervent scroll
#

@astral yarrow can u help to fix this

astral yarrow
#

have you done what is suggested in the error message?

fervent scroll
#

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

astral yarrow
#

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

fervent scroll
#

can i able to use mkcert

astral yarrow
#

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

fervent scroll
#

i tried by this whether it is correct

astral yarrow
#

Use node instead of react-scripts

fervent scroll
#

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

fervent scroll
#

@astral yarrow where i need to set node in server

astral yarrow
#

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?

fervent scroll
#

yah

astral yarrow
#

Dont forget the loader etc

fervent scroll
#

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

fervent scroll
#

@astral yarrow

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

fervent scroll
#

yah ok sorry

fervent scroll
#

is there is any other way then ngrok to convert my localserver to https.

astral yarrow
#

Yes using a custom entry point and passing the cert to nodejs https

fervent scroll
#

yah okk

#

and i have doubt whether first i need to install this package

astral yarrow
#

what do you mean?