Add comprehensive models and script for handling inline scripts and structured data
- Implement `remove-inline-scripts.js` to externalize Next.js inline scripts, enhancing CSP compliance. - Add models for `Book`, `Character`, `Story`, `Editor`, `System`, and `BookSerie` with relevant properties and utilities. - Include macOS entitlements plist for app development with advanced permissions. - Add utility functions to handle script hashing, cookie management, and content formatting.
This commit is contained in:
19
lib/models/Session.ts
Executable file
19
lib/models/Session.ts
Executable file
@@ -0,0 +1,19 @@
|
||||
import {UserProps} from "@/lib/models/User";
|
||||
|
||||
export interface SessionProps {
|
||||
isConnected: boolean,
|
||||
accessToken: string;
|
||||
user: UserProps | null;
|
||||
}
|
||||
|
||||
export interface LoginResponse {
|
||||
valid: boolean,
|
||||
message?: string,
|
||||
token?: string,
|
||||
userid?: string
|
||||
}
|
||||
|
||||
export default class Session {
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user