blob: 0c2604095baaeec6ff3be1c45a04c7815d56204e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const std = @import("std");
const Context = @import("../../context.zig");
pub const access = .everyone;
const Result = struct {
is_valid: bool
};
pub fn get(ctx: *Context) !Result {
return .{
.is_valid = ctx.storage.sessions.get(ctx.storage, ctx.fingerprint) != null
};
}
|