Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Is there an Authenticated Event #235

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

Is there an Authenticated Event #235

imns opened this issue Jul 11, 2016 · 6 comments

Comments

@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
Copy link
Member

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

@marshallswain
Copy link
Member

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
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
Copy link
Member

Yeah.

On Jul 11, 2016, at 1:51 PM, Nate Smith [email protected] 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
Copy link
Member

You can access the app at hook.app

@imns
Copy link
Author

imns commented Jul 11, 2016

Awesome, thanks for the quick replies @marshallswain.

@imns imns closed this as completed Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants