Commit 30d5496
committed
refactor(auth): correct a drifted docstring and two cache nits
- `getSessionPolicy`'s docstring still said the CREATE hook allows the sign-in
on a failed read. It has refused when the governing org is known since the
fail-closed split; say so.
- `SECURITY_POLICY_VERSION_CACHE_TTL_MS` had no consumer outside this module,
and exporting one of the two sibling TTLs but not the other was arbitrary.
- Pass an explicit `ttl` for both membership outcomes instead of relying on
`undefined` to mean the constructor default, so the positive/negative
asymmetry is visible at the call site.1 parent b9d8047 commit 30d5496
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
0 commit comments