@adakrpos/auth 0.0.1 → 0.0.2
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/__tests__/client.test.ts +2 -0
- package/__tests__/express.test.ts +1 -0
- package/__tests__/hono.test.ts +1 -0
- package/dist/{client-Dd5DjxzG.d.mts → client-B0VOB5v6.d.mts} +1 -0
- package/dist/{client-Dd5DjxzG.d.ts → client-B0VOB5v6.d.ts} +1 -0
- package/dist/express.d.mts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/generic.d.mts +1 -1
- package/dist/generic.d.ts +1 -1
- package/dist/hono.d.mts +1 -1
- package/dist/hono.d.ts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/types.ts +1 -0
package/__tests__/client.test.ts
CHANGED
|
@@ -69,6 +69,7 @@ describe("createAdakrposAuth", () => {
|
|
|
69
69
|
bio: null,
|
|
70
70
|
contact: null,
|
|
71
71
|
snsLinks: {},
|
|
72
|
+
cohort: null,
|
|
72
73
|
isVerified: true,
|
|
73
74
|
createdAt: 1,
|
|
74
75
|
updatedAt: 2,
|
|
@@ -133,6 +134,7 @@ describe("createAdakrposAuth", () => {
|
|
|
133
134
|
bio: null,
|
|
134
135
|
contact: null,
|
|
135
136
|
snsLinks: {},
|
|
137
|
+
cohort: null,
|
|
136
138
|
isVerified: false,
|
|
137
139
|
createdAt: 1,
|
|
138
140
|
updatedAt: 2,
|
package/__tests__/hono.test.ts
CHANGED
package/dist/express.d.mts
CHANGED
package/dist/express.d.ts
CHANGED
package/dist/generic.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as AdakrposAuthConfig, A as AuthContext } from './client-
|
|
1
|
+
import { a as AdakrposAuthConfig, A as AuthContext } from './client-B0VOB5v6.mjs';
|
|
2
2
|
|
|
3
3
|
declare function verifyRequest(request: Request, config: AdakrposAuthConfig): Promise<AuthContext>;
|
|
4
4
|
|
package/dist/generic.d.ts
CHANGED
package/dist/hono.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context } from 'hono';
|
|
3
|
-
import { A as AuthContext, a as AdakrposAuthConfig } from './client-
|
|
3
|
+
import { A as AuthContext, a as AdakrposAuthConfig } from './client-B0VOB5v6.mjs';
|
|
4
4
|
|
|
5
5
|
type AuthFn = () => Promise<AuthContext>;
|
|
6
6
|
declare module "hono" {
|
package/dist/hono.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context } from 'hono';
|
|
3
|
-
import { A as AuthContext, a as AdakrposAuthConfig } from './client-
|
|
3
|
+
import { A as AuthContext, a as AdakrposAuthConfig } from './client-B0VOB5v6.js';
|
|
4
4
|
|
|
5
5
|
type AuthFn = () => Promise<AuthContext>;
|
|
6
6
|
declare module "hono" {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as AdakrposAuthClient, a as AdakrposAuthConfig, c as AdakrposAuthContext, d as AdakrposSession, e as AdakrposUnauthContext, f as AdakrposUser, g as ApiKeyInfo, A as AuthContext, D as DeveloperApp, h as createAdakrposAuth } from './client-
|
|
1
|
+
export { b as AdakrposAuthClient, a as AdakrposAuthConfig, c as AdakrposAuthContext, d as AdakrposSession, e as AdakrposUnauthContext, f as AdakrposUser, g as ApiKeyInfo, A as AuthContext, D as DeveloperApp, h as createAdakrposAuth } from './client-B0VOB5v6.mjs';
|
|
2
2
|
|
|
3
3
|
declare function getCachedApiKeyValidity(apiKey: string): boolean | null;
|
|
4
4
|
declare function setCachedApiKeyValidity(apiKey: string, valid: boolean, ttlMs?: number): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as AdakrposAuthClient, a as AdakrposAuthConfig, c as AdakrposAuthContext, d as AdakrposSession, e as AdakrposUnauthContext, f as AdakrposUser, g as ApiKeyInfo, A as AuthContext, D as DeveloperApp, h as createAdakrposAuth } from './client-
|
|
1
|
+
export { b as AdakrposAuthClient, a as AdakrposAuthConfig, c as AdakrposAuthContext, d as AdakrposSession, e as AdakrposUnauthContext, f as AdakrposUser, g as ApiKeyInfo, A as AuthContext, D as DeveloperApp, h as createAdakrposAuth } from './client-B0VOB5v6.js';
|
|
2
2
|
|
|
3
3
|
declare function getCachedApiKeyValidity(apiKey: string): boolean | null;
|
|
4
4
|
declare function setCachedApiKeyValidity(apiKey: string, valid: boolean, ttlMs?: number): void;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface AdakrposUser {
|
|
|
8
8
|
bio: string | null;
|
|
9
9
|
contact: string | null;
|
|
10
10
|
snsLinks: Record<string, string>;
|
|
11
|
+
cohort: string | null; // e.g. "2026"
|
|
11
12
|
isVerified: boolean; // true if pos.idserve.net email verified
|
|
12
13
|
createdAt: number; // Unix timestamp (milliseconds)
|
|
13
14
|
updatedAt: number; // Unix timestamp (milliseconds)
|