nuxt-auth-utils 0.5.18 → 0.5.19
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/module.json +1 -1
- package/dist/runtime/server/api/session.get.d.ts +2 -1
- package/dist/runtime/server/lib/oauth/facebook.d.ts +1 -1
- package/dist/runtime/server/lib/oauth/facebook.js +3 -1
- package/dist/runtime/server/lib/oauth/microsoft.js +1 -0
- package/dist/runtime/server/utils/session.d.ts +1 -5
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -40,7 +40,7 @@ export interface OAuthFacebookConfig {
|
|
|
40
40
|
*/
|
|
41
41
|
authorizationParams?: Record<string, string>;
|
|
42
42
|
/**
|
|
43
|
-
* Redirect URL to
|
|
43
|
+
* Redirect URL to allow overriding for situations like prod failing to determine public hostname
|
|
44
44
|
* @default process.env.NUXT_OAUTH_FACEBOOK_REDIRECT_URL or current URL
|
|
45
45
|
*/
|
|
46
46
|
redirectURL?: string;
|
|
@@ -35,7 +35,9 @@ export function defineOAuthFacebookEventHandler({
|
|
|
35
35
|
withQuery(config.authorizationURL, {
|
|
36
36
|
client_id: config.clientId,
|
|
37
37
|
redirect_uri: redirectURL,
|
|
38
|
-
scope: config.scope.join(" ")
|
|
38
|
+
scope: config.scope.join(" "),
|
|
39
|
+
state: query.state || "",
|
|
40
|
+
...config.authorizationParams
|
|
39
41
|
})
|
|
40
42
|
);
|
|
41
43
|
}
|
|
@@ -20,11 +20,7 @@ export declare const sessionHooks: import("hookable").Hookable<SessionHooks, imp
|
|
|
20
20
|
* @param event The Request (h3) event
|
|
21
21
|
* @returns The user session
|
|
22
22
|
*/
|
|
23
|
-
export declare function getUserSession(event: UseSessionEvent): Promise<
|
|
24
|
-
id: any;
|
|
25
|
-
user?: import("#auth-utils").User;
|
|
26
|
-
secure?: import("#auth-utils").SecureSessionData;
|
|
27
|
-
}>;
|
|
23
|
+
export declare function getUserSession(event: UseSessionEvent): Promise<UserSession>;
|
|
28
24
|
/**
|
|
29
25
|
* Set a user session
|
|
30
26
|
* @param event The Request (h3) event
|