-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable log in after sign up #365
Conversation
messageLabel.textAlignment = .center | ||
messageLabel.font = regularSystemFont(size: 15) | ||
|
||
switch(status) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we have this logic in the status itself?
import Foundation | ||
|
||
enum NotificationStatus { | ||
case signedup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be signedUp
?
if self.options.loginAfterSignup { | ||
login.start { self.handle(result: $0, callback: { callback(nil, $0) }) } | ||
} else { | ||
callback(nil,.noLoginAfterSignup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is hardly an error and we should have a better to switch screens
Generic notification presenter added Tests added
69d034e
to
edeeec6
Compare
OIDC vs Non-OIDC
Now instead of Results we have a different callback for event type: - auth - cancel - error - signup (wip) - forgotPassword (wip) They will work mostly as events, and some of them can be triggered in the same lock run, e.g. auth & signup.
Also renamed internal results to better reflect the action that triggered it.
8914401
to
97aad7e
Compare
97aad7e
to
78a214e
Compare
Generic notification presenter added
Assets added
Tests added