complete authentication flow and email verification link implementation #232

Merged
akinwale merged 9 commits from authentication-flow into master 2018-08-16 11:48:35 +02:00
akinwale commented 2018-08-15 17:59:00 +02:00 (Migrated from github.com)
No description provided.
neb-b (Migrated from github.com) reviewed 2018-08-15 17:59:00 +02:00
skhameneh (Migrated from github.com) approved these changes 2018-08-16 10:34:31 +02:00
skhameneh (Migrated from github.com) left a comment

Mostly minor comments aside from some things about lifecycle methods

Mostly minor comments aside from some things about lifecycle methods
@ -144,7 +161,7 @@ class AppWithNavigationState extends React.Component {
}
skhameneh (Migrated from github.com) commented 2018-08-16 10:19:21 +02:00
You can define this without a constructor https://hackernoon.com/the-constructor-is-dead-long-live-the-constructor-c10871bea599
@ -1,5 +1,10 @@
const Constants = {
SETTING_ALPHA_UNDERSTANDS_RISKS: "ALPHA_UNDERSTANDS_RISKS"
KEY_FIRST_RUN_EMAIL: "firstRunEmail",
KEY_SHOULD_VERIFY_EMAIL: "shouldVerifyEmail",
skhameneh (Migrated from github.com) commented 2018-08-16 10:20:58 +02:00

Why is this value camel case unlike the others?

Why is this value camel case unlike the others?
skhameneh (Migrated from github.com) commented 2018-08-16 10:22:29 +02:00

No aliases (or resolves) for paths?
*Remove the long relative paths

No aliases (or resolves) for paths? *Remove the long relative paths
skhameneh (Migrated from github.com) commented 2018-08-16 10:25:25 +02:00

Don’t need a full constructor (see comment above)

Don’t need a full constructor (see comment above)
skhameneh (Migrated from github.com) commented 2018-08-16 10:27:30 +02:00

This is a legacy lifecycle method, should use getDerivedStateFromProps

This is a legacy lifecycle method, should use `getDerivedStateFromProps`
@ -77,0 +100,4 @@
// validate the email
AsyncStorage.getItem(Constants.KEY_FIRST_RUN_EMAIL).then(email => {
if (!email || email.trim().length === 0 || email.indexOf('@') === -1) {
return notify({
skhameneh (Migrated from github.com) commented 2018-08-16 10:29:39 +02:00

Legacy method, see comment above

Legacy method, see comment above
skhameneh (Migrated from github.com) commented 2018-08-16 10:31:43 +02:00

Nice and simple 👍
There’s an RFC conforming regex I know of, I’ll try to pull it up tomorrow

Nice and simple 👍 There’s an RFC conforming regex I know of, I’ll try to pull it up tomorrow
@ -55,0 +91,4 @@
} else {
notify({
message: 'Invalid Verification URI',
displayType: ['toast'],
skhameneh (Migrated from github.com) commented 2018-08-16 10:33:15 +02:00

Legacy lifecycle method, see other comments about this

Legacy lifecycle method, see other comments about this
akinwale (Migrated from github.com) reviewed 2018-08-16 10:51:26 +02:00
@ -1,5 +1,10 @@
const Constants = {
SETTING_ALPHA_UNDERSTANDS_RISKS: "ALPHA_UNDERSTANDS_RISKS"
KEY_FIRST_RUN_EMAIL: "firstRunEmail",
KEY_SHOULD_VERIFY_EMAIL: "shouldVerifyEmail",
akinwale (Migrated from github.com) commented 2018-08-16 10:51:26 +02:00

The value for the SETTING_* key should actually be camel case.

The value for the `SETTING_*` key should actually be camel case.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#232
No description provided.