mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-18 06:17:21 +00:00
24 lines
474 B
Text
24 lines
474 B
Text
import { Passport, DataSync } from "@aethex.os/core"
|
|
|
|
reality AuthSystem {
|
|
platforms: [roblox, web]
|
|
}
|
|
|
|
journey Login(username) {
|
|
platform: all
|
|
|
|
let passport = new Passport(username, username)
|
|
|
|
when passport.verify() {
|
|
sync passport across [roblox, web]
|
|
notify "Welcome back, " + username + "!"
|
|
reveal passport
|
|
} otherwise {
|
|
notify "Login failed"
|
|
}
|
|
}
|
|
|
|
journey Main() {
|
|
platform: all
|
|
Login("TestUser")
|
|
}
|