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

Is there an Authenticated Event #235

Closed
imns opened this Issue Jul 11, 2016 · 6 comments

Comments

Projects
None yet
2 participants
@imns
Copy link

imns commented Jul 11, 2016

Is there an event that gets fired when a user is authenticated / unauthenticated? I don't see anything in the docs about it.

My application state needs to change when a User's signs in and out.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 11, 2016

You can create custom events for this: http://docs.feathersjs.com/real-time/events.html

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 11, 2016

If you need to only send the authenticated event to certain users, you'll need to use http://docs.feathersjs.com/real-time/filtering.html

@imns

This comment has been minimized.

Copy link
Author

imns commented Jul 11, 2016

So, I'm assuming I would create an after create hook for the Authentication service and emit my custom event there?

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 11, 2016

Yeah.

On Jul 11, 2016, at 1:51 PM, Nate Smith notifications@github.com wrote:

So, I'm assuming I would create an after create hook for the Authentication service and emit my custom event there?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #235 (comment), or mute the thread https://github.com/notifications/unsubscribe/AAH3WWwWShkT7k39p-aBUwOOfTp5rflvks5qUp6ygaJpZM4JJosG.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented Jul 11, 2016

You can access the app at hook.app

@imns

This comment has been minimized.

Copy link
Author

imns commented Jul 11, 2016

Awesome, thanks for the quick replies @marshallswain.

@imns imns closed this Jul 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.