Comments (10)
@lugenx What's the scope of this ticket? I'm assuming, its scope involves creating a login endpoint using JWT?
from ecohabit.
yes, exactly.
from ecohabit.
maybe we should brake down pieces if you think it's too much work for a single issue. but i don't know how.
from ecohabit.
maybe we should brake down pieces if you think it's too much work for a single issue. but i don't know how.
No, creating a login endpoint in a single ticket sounds fair, though we need to decide on couple of things.
- What fields do we want to return in jwt body.
- We haven't established a connection with Mongo DB as yet, so do we need to add a ticket for that first?
- Shall we create a registration endpoint first as that will put users' info in DB.
from ecohabit.
maybe we should brake down pieces if you think it's too much work for a single issue. but i don't know how.
No, creating a login endpoint in a single ticket sounds fair, though we need to decide on couple of things.
- What fields do we want to return in jwt body.
- We haven't established a connection with Mongo DB as yet, so do we need to add a ticket for that first?
- Shall we create a registration endpoint first as that will put users' info in DB.
Just saw changes are merged for #95. Updated Questions:
- Shall we create a ticket to add OTP authentication for registration?
- MongoDB URI?
- Where would we store JWT Secret
- What fields do we want to return in jwt body.
from ecohabit.
- i need to brainstorm on that
- we already established connection to MongoDB, its in the runServer function in the index file.
- i created an endpoint but it will be changed when we work on auth.
from ecohabit.
there is actually another open pr #101 , at a quick glance it looks like some user auth stuff is handled, but i need to clone and check closely to see how we are going to proceed with that pr.
yeah, MongoDB URI will be stored in env file and added to railway.app as an env variable. i think we can do the same thing to jwt secret as well?
from ecohabit.
there is actually another open pr #101 , at a quick glance it looks like some user auth stuff is handled, but i need to clone and check closely to see how we are going to proceed with that pr. yeah, MongoDB URI will be stored in env file and added to railway.app as an env variable. i think we can do the same thing to jwt secret as well?
Sounds good, though IDK how railway app works, so how will we get URI from railway app?
from ecohabit.
yeah, there is a section that holds environmental variables.
you basically copy paste whatever is in your env file and it takes variables from there with the same exact variable (for ex. process.env.MONGO_URI)
from ecohabit.
if anybody needs a uri for development purpuse, one can simply create a free db and put their own uri to the env file and use it.
from ecohabit.
Related Issues (20)
- Enhance User Context to Include User Data and Error Handling
- Add Field to Store User's Habits in User Model HOT 4
- Implement Backend Endpoints for User-Specific Habits HOT 2
- Implement API Calls for User-Specific Habits HOT 2
- Remove Unnecessary Folder Nesting in Components HOT 1
- Add a weekbar component for habit tracking
- Add habit category images to the HabitCard component
- Fix "[ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client" errors in earth911 mock APIs HOT 1
- Add instruction for renaming .env.example on the client subdirectory HOT 2
- Update error handling on services/auth.js file? HOT 1
- Refactor: Remove Login and Register Context
- Create Private Route Component HOT 4
- Update Mock API URL in `.env.example` HOT 2
- Reference API URL from Environment Variables in `Recycle.js`
- Missing registration success feedback and navigation
- Use Token from UserContext in Homepage Component HOT 3
- Create Endpoint to Fetch User's Answers for a Given Date HOT 7
- Enhance HabitCard Interactions & Improve Authorization in answerController
- Minor README Enhancements HOT 2
- Update README to Include MongoDB Setup Instructions and Endpoint Data Population HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecohabit.