complete authentication flow and email verification link implementation #232
Labels
No labels
android: closed alpha
android: open beta
app-parity
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
creator
Epic
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
product review
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-android#232
Loading…
Reference in a new issue
No description provided.
Delete branch "authentication-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mostly minor comments aside from some things about lifecycle methods
@ -144,7 +161,7 @@ class AppWithNavigationState extends React.Component {
}
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",
Why is this value camel case unlike the others?
No aliases (or resolves) for paths?
*Remove the long relative paths
Don’t need a full constructor (see comment above)
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({
Legacy method, see comment above
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'],
Legacy lifecycle method, see other comments about this
@ -1,5 +1,10 @@
const Constants = {
SETTING_ALPHA_UNDERSTANDS_RISKS: "ALPHA_UNDERSTANDS_RISKS"
KEY_FIRST_RUN_EMAIL: "firstRunEmail",
KEY_SHOULD_VERIFY_EMAIL: "shouldVerifyEmail",
The value for the
SETTING_*
key should actually be camel case.