example simple registration/login logic with basic UI

This commit is contained in:
Oleksandr Honcharov
2025-04-17 18:30:09 +03:00
parent 52d611cf4e
commit 37519bbdaf
24 changed files with 333 additions and 420 deletions
+8 -1
View File
@@ -1,10 +1,17 @@
import { AuthEvent } from '../../events'
declare module '@entityseven/rage-fw-shared-types' {
export interface RageFW_ICustomClientEvent {
customClientEvent(greetings: string): string
}
export interface RageFW_ICustomServerEvent {
customServerEvent(greetings: string): string
[AuthEvent.LOGIN](data: { login: string; password: string }): string
[AuthEvent.REGISTER](data: {
login: string
email: string
password: string
}): string
}
export interface RageFW_ICustomBrowserEvent {
+4
View File
@@ -0,0 +1,4 @@
export enum AuthEvent {
LOGIN = 'AuthEvent::LOGIN',
REGISTER = 'AuthEvent::REGISTER',
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "@shared",
"version": "0.1.0",
"author": "Entity Seven Group",
"license": "CC BY-ND",
"description": "Shared types for rage-fw example"
}