Skip to the content.

前后端接口

// 原先为JwtPayload
interface JwtUserPayload {
  uuid: string;
  role: string;
  "https://hasura.io/jwt/claims": {
    "x-hasura-allowed-roles": string[];
    "x-hasura-default-role": string;
    "x-hasura-user-id": string;
  };
}

interface JwtVerifyPayload {
  email: string;
  phone: string;
  code: string; // hash加密后的验证码
}

前端页面逻辑

后端路由路径

数据库用户组权限