|
1 | | -import type { H3Event } from 'h3' |
2 | 1 | import type { OAuthConfig, PersistentSession, ProviderKeys, TokenRequest, TokenRespose, Tokens, UserSession } from '#oidc-auth' |
| 2 | +import type { H3Event } from 'h3' |
| 3 | +import type { OidcProviderConfig } from '../utils/provider' |
| 4 | +import type { JwtPayload } from '../utils/security' |
3 | 5 | import { useRuntimeConfig, useStorage } from '#imports' |
4 | 6 | import { deleteCookie, eventHandler, getQuery, getRequestURL, readBody, sendRedirect } from 'h3' |
5 | 7 | import { normalizeURL, parseURL } from 'ufo' |
6 | 8 | import { textToBase64 } from 'undio' |
7 | 9 | import * as providerPresets from '../../providers' |
8 | 10 | import { validateConfig } from '../utils/config' |
9 | 11 | import { configMerger, convertObjectToSnakeCase, convertTokenRequestToType, oidcErrorHandler, useOidcLogger } from '../utils/oidc' |
10 | | -import { createProviderFetch, type OidcProviderConfig } from '../utils/provider' |
11 | | -import { encryptToken, type JwtPayload, parseJwtToken, validateToken } from '../utils/security' |
| 12 | +import { createProviderFetch } from '../utils/provider' |
| 13 | +import { encryptToken, parseJwtToken, validateToken } from '../utils/security' |
12 | 14 | import { getUserSessionId, setUserSession, useAuthSession } from '../utils/session' |
13 | 15 |
|
14 | 16 | function callbackEventHandler({ onSuccess }: OAuthConfig<UserSession>) { |
|
0 commit comments