Skip to content
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

Add auth hash to external Id #797

Merged
merged 4 commits into from
Nov 20, 2020
Merged

Add auth hash to external Id #797

merged 4 commits into from
Nov 20, 2020

Conversation

Jeasmine
Copy link
Contributor

@Jeasmine Jeasmine commented Nov 16, 2020

  • Add auth to setExternalId
  • Add tests for new functionality

Needs name params validation

This change is Reviewable

@Jeasmine Jeasmine added the WIP Work In Progress label Nov 16, 2020
* Add auth to setExternalId
* Add tests for new functionality
@Jeasmine Jeasmine removed the WIP Work In Progress label Nov 16, 2020
Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add remote param check for require_user_id_auth

return;
} else if (!self.currentSubscriptionState.userId || !self.app_id) {
[OneSignal onesignal_Log:ONE_S_LL_WARN message:[NSString stringWithFormat:@"Attempted to set external user id, but %@ is not set", self.app_id == nil ? @"app_id" : @"user_id"]];
return;
} else if (self.currentEmailSubscriptionState.requiresEmailAuth && !hashToken) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self.currentEmailSubscriptionState.requiresEmailAuth should be checking requiresUserIdAuth instead

@Jeasmine Jeasmine merged commit abebdd8 into master Nov 20, 2020
@Jeasmine Jeasmine deleted the feature/external-id-auth branch November 20, 2020 22:15
Jeasmine added a commit that referenced this pull request Nov 20, 2020
* Add auth to setExternalId
* Add tests for new functionality
* Add failure block to external id methods
* Add tests for external id auth validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants