We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432edcc commit 159233eCopy full SHA for 159233e
README.md
@@ -151,6 +151,21 @@ import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
151
export default class SessionStore extends AdaptiveStore {}
152
```
153
154
+#### Optional Generic `Data` argument.
155
+
156
+```ts
157
+import Service from 'ember-simple-auth/services/session';
158
159
+type Data = {
160
+ authenticated: {
161
+ // Any data your authenticators return
162
+ id: string;
163
+ }
164
+}
165
166
+export default class SessionService<Data> extends Service {}
167
+```
168
169
then __the session service can be injected wherever
170
needed in the application__. In order to display login/logout buttons depending
171
on the current session state, inject the service into the respective controller
0 commit comments