injoonh / kaistian Goto Github PK
View Code? Open in Web Editor NEWKAISTian is a comprehensive suite of TypeScript packages designed to streamline the integration and utilization of KAIST APIs.
License: MIT License
KAISTian is a comprehensive suite of TypeScript packages designed to streamline the integration and utilization of KAIST APIs.
License: MIT License
Package name: @kaistian/[email protected]
The loginKaist()
function throws a ZodError
when student ID contains alphabetical characters.
Expect the type to be changed to: LoginKaistSuccess.studentId: string | null
.
Login with an unconventional account, such as a Library account.
Modify the type definition from:
ku_std_no: z.coerce.number().nullable()
to:
ku_std_no: z.string().nullable()
For example, Library1's student ID, 'B6109', triggers this error.
Package name: @kaistian/[email protected]
The loginKaist()
function erroneously throws a ZodError
when encountering an unrecognized error code SSO_LOGIN_PASSWORD_INCORRECT_WITHOUT_COUNT
.
[
{
"code": "invalid_union",
"unionErrors": [
{
"issues": [
{
"code": "invalid_type",
"expected": "object",
"received": "undefined",
"path": [
"dataMap",
"USER_INFO"
],
"message": "Required"
},
{
"received": true,
"code": "invalid_literal",
"expected": false,
"path": [
"error"
],
"message": "Invalid literal value, expected false"
}
],
"name": "ZodError"
},
{
"issues": [
{
"received": "SSO_LOGIN_PASSWORD_INCORRECT_WITHOUT_COUNT",
"code": "invalid_enum_value",
"options": [
"SSO_SERVER_ERROR",
"SSO_NEED_LOGIN",
"SSO_HTTP_CLIENT_CALL_ERROR",
"SSO_LOGIN_PASSWORD_CHANGE_REQUIRED",
"SSO_LOGIN_PASSWORD_INCORRECT",
"SSO_LOGIN_PASSWORD_EXPIRED",
"SSO_LOGIN_NOT_REGISTER",
"SSO_LOGIN_ACCOUNT_LOCKED",
"SSO_LOGIN_ERROR",
"FILE_NOT_FOUND"
],
"path": [
"errorCode"
],
"message": "Invalid enum value. Expected 'SSO_SERVER_ERROR' | 'SSO_NEED_LOGIN' | 'SSO_HTTP_CLIENT_CALL_ERROR' | 'SSO_LOGIN_PASSWORD_CHANGE_REQUIRED' | 'SSO_LOGIN_PASSWORD_INCORRECT' | 'SSO_LOGIN_PASSWORD_EXPIRED' | 'SSO_LOGIN_NOT_REGISTER' | 'SSO_LOGIN_ACCOUNT_LOCKED' | 'SSO_LOGIN_ERROR' | 'FILE_NOT_FOUND', received 'SSO_LOGIN_PASSWORD_INCORRECT_WITHOUT_COUNT'"
}
],
"name": "ZodError"
}
],
"path": [],
"message": "Invalid input"
}
]
Include SSO_LOGIN_PASSWORD_INCORRECT_WITHOUT_COUNT
in the enum of valid error codes for the LoginKaistError.errorCode
to handle this case appropriately.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.