-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting an error of " Please authenticate using a valid token" #35
Comments
//Try this code in Route 3 POST "/api/auth/getuser" router.post('/getuser', fetchuser, async (req, res) => { try { |
//Write this in index.js const connectToMongo = require('./db'); connectToMongo(); app.use(express.json()) app.use('/api/auth', require('./routes/auth')) app.listen(port, () => { |
You are on github or not ?
…On Fri, Dec 30, 2022, 4:23 PM Ishita Jaiswal ***@***.***> wrote:
//Write this in index.js
const connectToMongo = require('./db');
const express = require('express')
connectToMongo();
const app = express()
const port = 5000
app.use(express.json())
app.use('/api/auth', require('./routes/auth'))
app.use('/api/notes', require('./routes/notes'))
app.listen(port, () => {
console.log(iNotebook backend listening at http://localhost:${port})
})
—
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A23X73JKBIINQI55B4P3WQLWP3A3FANCNFSM6AAAAAARFSU6GM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I am getting the same issue. Someone please help me out. |
just provide valid jwt token |
Can you please explain in detail |
do you have discord? |
yes |
give me your id |
updesh |
check you discord |
The text was updated successfully, but these errors were encountered: