Archived
example simple registration/login logic with basic UI
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export enum AuthEvent {
|
||||
LOGIN = 'AuthEvent::LOGIN',
|
||||
REGISTER = 'AuthEvent::REGISTER',
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user