File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,15 @@ defmodule Pow.Store.CredentialsCache do
2
2
@ moduledoc """
3
3
Default module for credentials session storage.
4
4
5
- A key (session id), is used to store, fetch or delete credentials. When
6
- credentials are stored or deleted, a credentials key will be generated.
7
- The value of that key will be all current keys (session ids), and the
8
- most recent credentials.
9
-
10
- When a key is updated, all expired keys will be pruned from the credentials
11
- key.
12
-
13
- The credentials are expected to take the form of
5
+ A key (session id) is used to store, fetch, or delete credentials. The
6
+ credentials are expected to take the form of
14
7
`{credentials, session_metadata}`, where session metadata is data exclusive
15
8
to the session id.
9
+
10
+ This module also adds two utility methods:
11
+
12
+ * `users/2` - to list all current users
13
+ * `sessions/2` - to list all current sessions
16
14
"""
17
15
alias Pow . { Config , Store.Base }
18
16
You can’t perform that action at this time.
0 commit comments