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

[Bug]: login doesn't work #39

Closed
bmulholland opened this issue Aug 18, 2023 · 4 comments
Closed

[Bug]: login doesn't work #39

bmulholland opened this issue Aug 18, 2023 · 4 comments

Comments

@bmulholland
Copy link

bmulholland commented Aug 18, 2023

What happened?

I'm calling login with correct credentials, but this happens:

[SessionManager.js:122:12](webpack://onesignal-web-sdk/home/runner/work/OneSignal-Website-SDK/OneSignal-Website-SDK/build/ts-to-es6/src/shared/managers/sessionManager/SessionManager.js)
Error handling focus: n: Abort _getOneSignalAndSubscriptionIds: no identity

What browsers are you seeing the problem on?

Firefox

What operating system are you running?

latest macos

Steps to reproduce?

This is all correct, using the vue sdk, everything is set correctly

            nuxtApp.$OneSignal.login(
              $auth.user.external_id,
              $auth.user.service_signatures.one_signal
            )

What did you expect to happen?

user logged in

Relevant log output

No response

@bmulholland
Copy link
Author

Repro'd in Chrome, too

@bmulholland
Copy link
Author

@jkasten2
Copy link
Member

@bmulholland Thanks for reporting.

Can you share where you are initializing OneSignal in relation to calling OneSignal.login in your code?

It's possible OneSignal.login could be getting called before initialization is completing. Can you try awaiting on the Promise returned by OneSignal.init?

@bmulholland
Copy link
Author

This was OneSignal/OneSignal-Website-SDK#1095 (comment)

combined with other misleading errors

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

No branches or pull requests

2 participants