import { RestClient } from "../lib/rest" ; export interface SignInInput { email : string ; password : string ; } export interface SignInResponse { token : string ; } export default function signIn ( rest , input ) { return rest . fetch < SignInResponse > ( "/auth/local" , { method : "POST" , body : input , } ) ; }