-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from passkeydeveloper/mm/add-queryparam-validation
Begin scaffolding functionality
- Loading branch information
Showing
10 changed files
with
326 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Context } from 'hono'; | ||
|
||
|
||
export async function handleCreateAuthOptions(context: Context): Promise<Response> { | ||
return context.text('handleCreateAuthOptions'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Context } from 'hono'; | ||
import { zfd } from 'zod-form-data'; | ||
|
||
import { regOptionsInputSchema } from '../schemas'; | ||
|
||
|
||
/** | ||
* Generate registration options | ||
*/ | ||
export async function handleCreateRegOptions(context: Context): Promise<Response> { | ||
const parsedInput = zfd.formData(regOptionsInputSchema).parse(context.req.query()); | ||
console.log(parsedInput); | ||
return context.text(`handleCreateRegOptions ${JSON.stringify(parsedInput)}`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Context } from 'hono'; | ||
|
||
|
||
export async function handleVerifyAuthResponse(context: Context): Promise<Response> { | ||
return context.text('handleVerifyAuthResponse'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Context } from 'hono'; | ||
|
||
|
||
export async function handleVerifyRegResponse(context: Context): Promise<Response> { | ||
return context.text('handleVerifyRegResponse'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { handleCreateRegOptions } from './handleCreateRegOptions'; | ||
export { handleCreateAuthOptions } from './handleCreateAuthOptions'; | ||
export { handleVerifyRegResponse } from './handleVerifyRegResponse'; | ||
export { handleVerifyAuthResponse } from './handleVerifyAuthResponse'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.