You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`banner`| a small boxed console message | Called with `{ code, url }`; prints via `printBanner()`. |
32
+
|`onTrusted`|`undefined`| Called with `{ session, authToken }` once a code exchange succeeds, so a host rendering its own banner can retract it. |
32
33
|`serverUrl`|`context.host.resolveOrigin()`| Magic-link base URL. |
33
34
34
35
Returns a `DevframeAuthHandler`:
@@ -57,4 +58,6 @@ if (!auth.authorize(methodName, session))
57
58
auth.onConnect(peer, session)
58
59
```
59
60
61
+
An exchange rotates the code and prints the new one, and `onTrusted` fires after that, so a host retracting a sticky notice drops that follow-up too and calls `auth.printBanner()` when it next wants a code on screen.
62
+
60
63
Auth storage is internal, not `devframe/node/hub-internals`.
0 commit comments