init: Initial commit
This commit is contained in:
10
lib/search-params.tsx
Normal file
10
lib/search-params.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createLoader, parseAsString } from 'nuqs/server'
|
||||
|
||||
export const authorize = {
|
||||
client_id: parseAsString,
|
||||
redirect_uri: parseAsString,
|
||||
response_type: parseAsString.withDefault("code"),
|
||||
scope: parseAsString.withDefault("profile email"),
|
||||
}
|
||||
|
||||
export const authorizeLoader = createLoader(authorize)
|
||||
Reference in New Issue
Block a user