mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-24 00:56:41 +02:00
chore: complete ManaCore → Mana rename (docs, go modules, plists, images)
Final cleanup of references missed in previous rename commits: - Dockerfiles: PUBLIC_MANA_CORE_AUTH_URL → PUBLIC_MANA_AUTH_URL - Go modules: github.com/manacore/* → github.com/mana/* (7 go.mod files) - launchd plists: com.manacore.* → com.mana.* (14 files renamed + content) - Image assets: *_Manacore_AI_Credits* → *_Mana_AI_Credits* (11 files) - .env.example files: ManaCore brand strings → Mana - .prettierignore: stale apps/manacore/* paths → apps/mana/* - Markdown docs (CLAUDE.md, /docs/*): mana-core-auth → mana-auth, etc. Excluded from rename: .claude/, devlog/, manascore/ (historical content), client testimonials, blueprints, npm package refs (@mana-core/*). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6f4667c2a3
commit
22a73943e1
307 changed files with 2408 additions and 4537 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# @manacore/shared-auth
|
||||
# @mana/shared-auth
|
||||
|
||||
Shared authentication utilities for Manacore apps. This package provides a configurable authentication service that can be used across React Native (Expo) and web apps.
|
||||
Shared authentication utilities for Mana apps. This package provides a configurable authentication service that can be used across React Native (Expo) and web apps.
|
||||
|
||||
## Features
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ Shared authentication utilities for Manacore apps. This package provides a confi
|
|||
## Installation
|
||||
|
||||
```bash
|
||||
pnpm add @manacore/shared-auth
|
||||
pnpm add @mana/shared-auth
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
|
@ -21,7 +21,7 @@ pnpm add @manacore/shared-auth
|
|||
### Web (SvelteKit, React, etc.)
|
||||
|
||||
```typescript
|
||||
import { initializeWebAuth } from '@manacore/shared-auth';
|
||||
import { initializeWebAuth } from '@mana/shared-auth';
|
||||
|
||||
const { authService, tokenManager } = initializeWebAuth({
|
||||
baseUrl: 'https://api.example.com',
|
||||
|
|
@ -51,7 +51,7 @@ import {
|
|||
setDeviceAdapter,
|
||||
setNetworkAdapter,
|
||||
setupFetchInterceptor,
|
||||
} from '@manacore/shared-auth';
|
||||
} from '@mana/shared-auth';
|
||||
import * as SecureStore from 'expo-secure-store';
|
||||
|
||||
// Create storage adapter for Expo
|
||||
|
|
@ -140,7 +140,7 @@ import {
|
|||
getUserFromToken,
|
||||
isB2BUser,
|
||||
getB2BInfo,
|
||||
} from '@manacore/shared-auth';
|
||||
} from '@mana/shared-auth';
|
||||
|
||||
const payload = decodeToken(token);
|
||||
const isValid = isTokenValidLocally(token);
|
||||
|
|
@ -157,7 +157,7 @@ The package uses adapters for platform-specific functionality:
|
|||
- **NetworkAdapter**: For checking network connectivity
|
||||
|
||||
```typescript
|
||||
import { setStorageAdapter, setDeviceAdapter, setNetworkAdapter } from '@manacore/shared-auth';
|
||||
import { setStorageAdapter, setDeviceAdapter, setNetworkAdapter } from '@mana/shared-auth';
|
||||
|
||||
setStorageAdapter(myStorageAdapter);
|
||||
setDeviceAdapter(myDeviceAdapter);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "@mana/shared-auth",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"description": "Shared authentication utilities for Manacore apps",
|
||||
"description": "Shared authentication utilities for Mana apps",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue