// Generated by bynkc — do not edit by hand.
// context auth.sessions

import { Ok, Err, Some, None, type Result, type Option, type ValidationError } from "../runtime.js";

import { Claims } from "../tokens.js";

import * as tokens from "../tokens.js";

export const login = {
  async call(deps: { Jwt: tokens.Jwt }): Promise<string> {
    const token = await deps.Jwt.sign({ sub: "u1", exp: 0 });
    return token;
  },
};

export interface AuthSessionsDeps {
  readonly Jwt: tokens.Jwt;
}

export function makeSurface(deps: AuthSessionsDeps) {
  return {
    async login(): Promise<string> {
      return login.call(deps);
    },
  };
}

