refactor: migrate EncryptID URLs from encryptid.jeffemmett.com to auth.ridentity.online
Part of the ridentity.online branding migration. The EncryptID auth server is now accessible at auth.ridentity.online (with the legacy encryptid.jeffemmett.com kept as a backward-compatible alias). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0de217d5f5
commit
8af286e992
|
|
@ -17,7 +17,7 @@ import {
|
||||||
} from '@encryptid/sdk/types';
|
} from '@encryptid/sdk/types';
|
||||||
import { RMAPS_PERMISSIONS } from '@encryptid/sdk/types/modules';
|
import { RMAPS_PERMISSIONS } from '@encryptid/sdk/types/modules';
|
||||||
|
|
||||||
const ENCRYPTID_SERVER = process.env.NEXT_PUBLIC_ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com';
|
const ENCRYPTID_SERVER = process.env.NEXT_PUBLIC_ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online';
|
||||||
|
|
||||||
// In-memory cache (5 minute TTL)
|
// In-memory cache (5 minute TTL)
|
||||||
const roleCache = new Map<string, { role: ResolvedRole; expires: number }>();
|
const roleCache = new Map<string, { role: ResolvedRole; expires: number }>();
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { create } from 'zustand';
|
||||||
import { persist } from 'zustand/middleware';
|
import { persist } from 'zustand/middleware';
|
||||||
import { EncryptIDClient } from '@encryptid/sdk/client';
|
import { EncryptIDClient } from '@encryptid/sdk/client';
|
||||||
|
|
||||||
const ENCRYPTID_SERVER = process.env.NEXT_PUBLIC_ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com';
|
const ENCRYPTID_SERVER = process.env.NEXT_PUBLIC_ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online';
|
||||||
const client = new EncryptIDClient(ENCRYPTID_SERVER);
|
const client = new EncryptIDClient(ENCRYPTID_SERVER);
|
||||||
|
|
||||||
interface AuthState {
|
interface AuthState {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
* No dependencies required — uses Node.js built-in fetch.
|
* No dependencies required — uses Node.js built-in fetch.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const ENCRYPTID_SERVER_URL = process.env.ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com';
|
const ENCRYPTID_SERVER_URL = process.env.ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify an EncryptID JWT token by calling the EncryptID server.
|
* Verify an EncryptID JWT token by calling the EncryptID server.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue