Skip to content

Commit

Permalink
feat: v.1.0.3 add js doc for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunyawat Naunnak committed Jul 8, 2024
1 parent ef755f8 commit fe21040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/api/routers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
export const authRouter = createTRPCRouter({
/**
* Get user information based on student ID.
*
*
* @param {Object} input - Input object.
* @param {string} input.student_id - The student ID to search for.
* @returns {Promise<Object|null>} The student information if found, otherwise null.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const encrypt = async (data: object): Promise<string> => {
/**
* Decrypts a JWT token.
* @param {string} token - The JWT token to be decrypted.
* @returns {Promise<Student | { error: string }>} A promise that resolves to the decrypted data if the token is valid,
* @returns {Promise<Student | { error: string }>} A promise that resolves to the decrypted data if the token is valid,
* or an error object if the token is invalid.
*/
export const decrypt = async (token: string) => {
Expand Down

0 comments on commit fe21040

Please sign in to comment.