@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.
@@ -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,
@@ -20,6 +20,7 @@ const validSession = {
20
20
  bio: null,
21
21
  contact: null,
22
22
  snsLinks: {},
23
+ cohort: null,
23
24
  isVerified: true,
24
25
  createdAt: 1,
25
26
  updatedAt: 2,
@@ -20,6 +20,7 @@ const validSession = {
20
20
  bio: null,
21
21
  contact: null,
22
22
  snsLinks: {},
23
+ cohort: null,
23
24
  isVerified: true,
24
25
  createdAt: 1,
25
26
  updatedAt: 2,
@@ -8,6 +8,7 @@ interface AdakrposUser {
8
8
  bio: string | null;
9
9
  contact: string | null;
10
10
  snsLinks: Record<string, string>;
11
+ cohort: string | null;
11
12
  isVerified: boolean;
12
13
  createdAt: number;
13
14
  updatedAt: number;
@@ -8,6 +8,7 @@ interface AdakrposUser {
8
8
  bio: string | null;
9
9
  contact: string | null;
10
10
  snsLinks: Record<string, string>;
11
+ cohort: string | null;
11
12
  isVerified: boolean;
12
13
  createdAt: number;
13
14
  updatedAt: number;
@@ -1,4 +1,4 @@
1
- import { A as AuthContext, a as AdakrposAuthConfig } from './client-Dd5DjxzG.mjs';
1
+ import { A as AuthContext, a as AdakrposAuthConfig } from './client-B0VOB5v6.mjs';
2
2
 
3
3
  declare global {
4
4
  namespace Express {
package/dist/express.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AuthContext, a as AdakrposAuthConfig } from './client-Dd5DjxzG.js';
1
+ import { A as AuthContext, a as AdakrposAuthConfig } from './client-B0VOB5v6.js';
2
2
 
3
3
  declare global {
4
4
  namespace Express {
@@ -1,4 +1,4 @@
1
- import { a as AdakrposAuthConfig, A as AuthContext } from './client-Dd5DjxzG.mjs';
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
@@ -1,4 +1,4 @@
1
- import { a as AdakrposAuthConfig, A as AuthContext } from './client-Dd5DjxzG.js';
1
+ import { a as AdakrposAuthConfig, A as AuthContext } from './client-B0VOB5v6.js';
2
2
 
3
3
  declare function verifyRequest(request: Request, config: AdakrposAuthConfig): Promise<AuthContext>;
4
4
 
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-Dd5DjxzG.mjs';
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-Dd5DjxzG.js';
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-Dd5DjxzG.mjs';
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-Dd5DjxzG.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adakrpos/auth",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
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)