ɴᴇʟᴇᴏᴋᴏ
ɴᴇʟᴇᴏᴋᴏ
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
yes thx
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
ok thx
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
ohw... ok i see on auth/auth/references with openAPI plugin, but i can't have these routes on swagger? @Ping
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
No description
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
i think i need to watch a video for know how to use it
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
ok, as how i know the route for use betterauth?
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
cause i got ok on this route http://localhost:3000/api/auth/ok but other route like http://localhost:3000/api/auth/test did nothing
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
this part
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
const betterAuthView = (context: Context) => {
const BETTER_AUTH_ACCEPT_METHODS = ["POST", "GET"]
// validate request method
if(BETTER_AUTH_ACCEPT_METHODS.includes(context.request.method)) {
return auth.handler(context.request);
} else {
context.error(405)
}
}
const betterAuthView = (context: Context) => {
const BETTER_AUTH_ACCEPT_METHODS = ["POST", "GET"]
// validate request method
if(BETTER_AUTH_ACCEPT_METHODS.includes(context.request.method)) {
return auth.handler(context.request);
} else {
context.error(405)
}
}
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
it works thx but what did the betterAuthView
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
ohw..
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
import { Elysia, Context } from "elysia";
import {auth} from "./auth";



const betterAuthView = (context: Context) => {
const BETTER_AUTH_ACCEPT_METHODS = ["POST", "GET"]
// validate request method
if(BETTER_AUTH_ACCEPT_METHODS.includes(context.request.method)) {
return auth.handler(context.request);
} else {
context.error(405)
}
}


const app = new Elysia()

app.mount(auth.handler);

app.all("/api/auth/*", betterAuthView)
app.listen(3000);

console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
import { Elysia, Context } from "elysia";
import {auth} from "./auth";



const betterAuthView = (context: Context) => {
const BETTER_AUTH_ACCEPT_METHODS = ["POST", "GET"]
// validate request method
if(BETTER_AUTH_ACCEPT_METHODS.includes(context.request.method)) {
return auth.handler(context.request);
} else {
context.error(405)
}
}


const app = new Elysia()

app.mount(auth.handler);

app.all("/api/auth/*", betterAuthView)
app.listen(3000);

console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
28 replies
BABetter Auth
Created by ɴᴇʟᴇᴏᴋᴏ on 4/16/2025 in #help
Installation problems
did i need to do all this part?
28 replies