Feature - First Login Detection #25
Closed
dwight9339
started this conversation in
Proposed Tasks
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Requested Participants:
@Nesmith-Charlesii, @scollier87
Description:
We need to implement a feature that detects if a user is logging in for the first time. This way we can display an onboarding message to new users.
Proposed Implementation:
/types/user.d.ts
add aboolean
field calledfirstLogin
./src/models/user.model.ts
to include a firstLogin field with a default value oftrue
.firstLogin
field istrue
and, if so, update this value tofalse
./src/__tests__/unit/models/user-schema.test.ts
to check that thefirstLogin
field is present and has the correct default value when a new user is created.firstLogin
istrue
when a user first logs in.firstLogin
isfalse
on subsequent logins.Beta Was this translation helpful? Give feedback.
All reactions