@alien_org/sso-sdk-core 1.0.11 → 1.0.12

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthorizeResponseSchema, ExchangeCodeRequestSchema, ExchangeCodeResponseSchema, InternalAuthorizeRequestSchema, PollRequestSchema, PollResponseSchema, TokenInfoSchema, VerifyTokenRequestSchema, VerifyTokenResponseSchema, } from './schema';
1
+ import { AuthorizeResponseSchema, ExchangeCodeRequestSchema, ExchangeCodeResponseSchema, AuthorizeRequestSchema, PollRequestSchema, PollResponseSchema, TokenInfoSchema, VerifyTokenRequestSchema, VerifyTokenResponseSchema, } from './schema';
2
2
  import { z } from 'zod/v4-mini';
3
3
  import base64url from 'base64url';
4
4
  import CryptoJS from 'crypto-js';
@@ -47,8 +47,9 @@ export class AlienSsoSdkClient {
47
47
  const authorizeUrl = `${this.config.ssoBaseUrl}/sso/authorize`;
48
48
  const authorizePayload = {
49
49
  code_challenge: codeChallenge,
50
+ code_challenge_method: 'S256'
50
51
  };
51
- InternalAuthorizeRequestSchema.parse(authorizePayload);
52
+ AuthorizeRequestSchema.parse(authorizePayload);
52
53
  const response = await fetch(authorizeUrl, {
53
54
  method: 'POST',
54
55
  headers: {
package/dist/schema.d.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  import { z } from 'zod/v4-mini';
2
- /**
3
- * Internal Authorize request/response schema to server SDK
4
- */
5
- export declare const InternalAuthorizeRequestSchema: z.ZodMiniObject<{
6
- code_challenge: z.ZodMiniString<string>;
7
- }, z.core.$strip>;
8
- export type InternalAuthorizeRequest = z.infer<typeof InternalAuthorizeRequestSchema>;
9
2
  /**
10
3
  * Authorize request/response schema
11
4
  */
package/dist/schema.js CHANGED
@@ -1,10 +1,4 @@
1
1
  import { z } from 'zod/v4-mini';
2
- /**
3
- * Internal Authorize request/response schema to server SDK
4
- */
5
- export const InternalAuthorizeRequestSchema = z.object({
6
- code_challenge: z.string(),
7
- });
8
2
  /**
9
3
  * Authorize request/response schema
10
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alien_org/sso-sdk-core",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/alien-id/sso-sdk-js.git"