@stacksjs/socials 0.75.520 → 0.75.522

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.
@@ -55,10 +55,12 @@ export declare class AppleProvider extends AbstractProvider implements ProviderI
55
55
  protected privateKey: string;
56
56
  protected native: boolean;
57
57
  constructor(providerConfig: AppleProviderConfig);
58
+ private getConfig;
58
59
  getAuthUrl(): Promise<string>;
59
60
  getAccessToken(code: string): Promise<string>;
60
61
  getUserByToken(token: string, options?: AppleIdentityOptions): Promise<SocialUser>;
61
62
  protected generateClientSecret(): string;
63
+ private base64urlJson;
62
64
  protected validateConfig(): void;
63
65
  protected getTokenUrl(): string;
64
66
  }
@@ -45,3 +45,4 @@ export declare class BlueskyPublishingDriver implements SocialPublishingDriver,
45
45
  protected request<T>(url: URL, init: RequestInit): Promise<T>;
46
46
  protected toPostUrl(handle: string, uri: string): string;
47
47
  }
48
+ export {};
@@ -4,6 +4,7 @@ export declare class FacebookProvider extends AbstractProvider implements Provid
4
4
  protected baseUrl: string;
5
5
  protected apiUrl: string;
6
6
  protected get graphVersion(): string;
7
+ private getConfig;
7
8
  getAuthUrl(): Promise<string>;
8
9
  getAccessToken(code: string): Promise<string>;
9
10
  getUserByToken(token: string): Promise<SocialUser>;
@@ -3,6 +3,7 @@ import type { GitHubEmail, ProviderInterface, SocialUser } from '../types';
3
3
  export declare class GitHubProvider extends AbstractProvider implements ProviderInterface {
4
4
  protected baseUrl: string;
5
5
  protected apiUrl: string;
6
+ private getConfig;
6
7
  getAuthUrl(): Promise<string>;
7
8
  getAccessToken(code: string): Promise<string>;
8
9
  getUserByToken(token: string): Promise<SocialUser>;
@@ -7,6 +7,7 @@ export declare class GoogleProvider extends AbstractProvider implements Provider
7
7
  protected tokenInfoUrl: string;
8
8
  protected certsUrl: string;
9
9
  protected issuers: unknown[];
10
+ private getConfig;
10
11
  getAuthUrl(): Promise<string>;
11
12
  getAccessToken(code: string): Promise<string>;
12
13
  getUserByToken(token: string): Promise<SocialUser>;
@@ -34,10 +34,15 @@ export declare class StacksIssuerError extends Error {
34
34
  */
35
35
  export declare class StacksIssuerProvider extends AbstractProvider implements ProviderInterface {
36
36
  protected scopeSeparator: string;
37
+ private settings;
37
38
  constructor(config: StacksIssuerConfig);
39
+ private endpoint;
40
+ private resources;
38
41
  protected validateConfig(): void;
39
42
  protected getTokenUrl(): string;
40
43
  getAuthUrl(): Promise<string>;
44
+ private post;
45
+ private tokens;
41
46
  getTokens(code: string): Promise<StacksIssuerTokens>;
42
47
  getAccessToken(code: string): Promise<string>;
43
48
  refreshTokens(refreshToken: string): Promise<StacksIssuerTokens>;
@@ -37,6 +37,7 @@ export declare class TwitterProvider extends AbstractProvider implements Provide
37
37
  protected baseUrl: string;
38
38
  protected apiUrl: string;
39
39
  protected _usesPKCE: boolean;
40
+ private getConfig;
40
41
  getAuthUrl(): Promise<string>;
41
42
  getAccessToken(code: string): Promise<string>;
42
43
  getUserByToken(token: string): Promise<SocialUser>;
@@ -56,3 +56,4 @@ export declare interface SocialProviderDescriptor {
56
56
  * providers happen to share.
57
57
  */
58
58
  export type SocialProviderName = 'apple' | 'facebook' | 'github' | 'google' | 'twitter';
59
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/socials",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.520",
5
+ "version": "0.75.522",
6
6
  "description": "A simple and elegant social authentication package for Stacks.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -57,14 +57,14 @@
57
57
  "prepublishOnly": "bun run build"
58
58
  },
59
59
  "dependencies": {
60
- "@stacksjs/api": "0.75.520",
61
- "@stacksjs/composables": "0.75.520",
62
- "@stacksjs/config": "0.75.520",
63
- "@stacksjs/database": "0.75.520"
60
+ "@stacksjs/api": "0.75.522",
61
+ "@stacksjs/composables": "0.75.522",
62
+ "@stacksjs/config": "0.75.522",
63
+ "@stacksjs/database": "0.75.522"
64
64
  },
65
65
  "devDependencies": {
66
- "@stacksjs/error-handling": "0.75.520",
67
- "@stacksjs/router": "0.75.520",
66
+ "@stacksjs/error-handling": "0.75.522",
67
+ "@stacksjs/router": "0.75.522",
68
68
  "better-dx": "^0.2.24"
69
69
  }
70
70
  }