computablelabs / computablelabs/ffa-frontend

Consent check in App.vue

Open
#704 0 comments 0 reactions 0 assignees View on GitHub
legal-consent
Dominant language
TypeScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Check that user has submitted consent form and that the consent version is recent. See #701

Add a new member `hasConsented` to `AppModule` where the consent version must be `>=` current consent version.

Keep a list of consent versions with comments in a new `util/ConsentVersion.ts`

The check must occur _after_ we check for their login state. If the user is logged in (`window.ethereum !== undefined` and `AppModule.jwt !== undefined`), then run the check. If the user is not logged in go to login flow. At that point, we probably need a `vuexSubscription` in `App.vue` on `appModule/setJwt`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.