Create session check endpoint
This commit is contained in:
parent
6e42af0b70
commit
748aa0e120
7
functions/api/auth/mobile/is-valid.ts
Normal file
7
functions/api/auth/mobile/is-valid.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { jsonResponse } from "../../../common.js";
|
||||
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
return jsonResponse(
|
||||
JSON.stringify({ valid: Boolean(context.data.current_user) }),
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user