PoiPoi-Dev / PoiPoi-frontend

MIT License
1 stars 4 forks source link

Feat/auth to validate user #37

Closed DepartureLV closed 2 months ago

DepartureLV commented 2 months ago

Description

New Fetch function for users that log in. If they log in, they will send POST request with uid via /api/poi/status to Backend server to fetch all marker with completion status. if not log in, fetch to original endpoint (/api/poi) and prevent them to collect by alert them to login first. UX, transition, and redirect can be discussed later.

Card Link

https://3.basecamp.com/5802516/buckets/37608217/card_tables/cards/7483000721

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist before requesting a review