@seamless-auth/express 0.0.2-beta.15 → 0.0.2-beta.16
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.
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,14 @@ type SeamlessAuthServerOptions = {
|
|
|
13
13
|
refreshCookieName?: string;
|
|
14
14
|
preAuthCookieName?: string;
|
|
15
15
|
};
|
|
16
|
+
interface SeamlessAuthUser {
|
|
17
|
+
sub: string;
|
|
18
|
+
roles: string[];
|
|
19
|
+
email: string;
|
|
20
|
+
phone: string;
|
|
21
|
+
iat?: number;
|
|
22
|
+
exp?: number;
|
|
23
|
+
}
|
|
16
24
|
/**
|
|
17
25
|
* Creates an Express Router that proxies all authentication traffic to a Seamless Auth server.
|
|
18
26
|
*
|
|
@@ -185,4 +193,4 @@ declare function createEnsureCookiesMiddleware(opts: EnsureCookiesMiddlewareOpti
|
|
|
185
193
|
|
|
186
194
|
declare function getSeamlessUser(req: Request, opts: SeamlessAuthServerOptions): Promise<any>;
|
|
187
195
|
|
|
188
|
-
export { type SeamlessAuthServerOptions, createEnsureCookiesMiddleware, createSeamlessAuthServer as default, getSeamlessUser, requireAuth, requireRole };
|
|
196
|
+
export { type SeamlessAuthServerOptions, type SeamlessAuthUser, createEnsureCookiesMiddleware, createSeamlessAuthServer as default, getSeamlessUser, requireAuth, requireRole };
|