@polaris-auth/client 0.6.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ /** The `multi-session` plugin's routes as methods of `client.multiSession`. */
2
+ export function multiSession(client) {
3
+ return {
4
+ /** GET /multi-session/last-method: Read the device's last sign-in method */
5
+ lastMethod: (...init) => client.GET("/multi-session/last-method", ...init),
6
+ /** GET /multi-session/list: List the accounts signed in on this device */
7
+ list: (...init) => client.GET("/multi-session/list", ...init),
8
+ /** DELETE /multi-session/{sessionId}: Sign one account out of this device */
9
+ revoke: (...init) => client.DELETE("/multi-session/{sessionId}", ...init),
10
+ /** POST /multi-session/switch: Switch to another account signed in on this device */
11
+ switch: (...init) => client.POST("/multi-session/switch", ...init),
12
+ };
13
+ }