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)