Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create session check endpoint
  • Loading branch information
regalijan committed Oct 20, 2023
1 parent 6e42af0 commit 748aa0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functions/api/auth/mobile/is-valid.ts
@@ -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) }),
);
}

0 comments on commit 748aa0e

Please sign in to comment.