question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notifier wont work with other opitions like 'identifyUserProps'

See original GitHub issue

Steps to reproduce

I am configuring authManagement in my app like this:

app.configure(authManagement({
    notifier: () => notifier(app),
    identifyUserProps: ['email', 'phone']
  }));

But notifier is not called when I make any actions from client like sendResetPwd.

If I configure it like this:

app.configure(authManagement(notifier(app)));

It will work, but them I cant use the phone as a identifying property to my users.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
janzhengcommented, Jan 5, 2020

haha I did the same thing (probably used the same tutorial!)

@gchokeen this is probably too late, but you can configure authManagement like this, if your notifier is an object:

const authManagement = require('feathers-authentication-management');
...
app.configure(authManagement({
    delay: 1000 * 60 * 60 * 24 * 30, // 30 days
    // notifier: notifier(app), // old way
    notifier: accountService(app).notifier
}))
0reactions
chrisbagcommented, Oct 13, 2020

@claustres Thank you for your fast answer, this is exactly what happened. Problem solved 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript not allowing to pass props to children with React ...
I had a look at the docs and it seems like there's a mistake in the Typescript types. content is defined as a...
Read more >
Alerts/Widget Troubleshooting - Streamlabs
Go to Streamlabs.com > Alert Box > Follows/Subscriptions/Donations/Etc. > Click the "+" for Open Alert Variations and Disable any alert variations.
Read more >
Create notification - OneSignal Documentation
The Create Notification method is used when you want your server to programmatically send Push Notification, Email, and SMS messages through OneSignal.
Read more >
Notify function in Power Apps - Power Platform - Microsoft Learn
The Notify function displays a banner message to the user at the top of the screen, overlaying what is currently displayed. The notification...
Read more >
Issues: Find and fix problems - Chrome Developers
The Issues tab in Chrome DevTools reduces the notification fatigue and clutter of the Console. Use it to find solutions to problems detected ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found