this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

oauth: rename route /oauth/callback

Clément bb836b51 6ea6ae79

+20 -20
+1 -1
app/scripts/generate-metadata.ts
··· 12 12 JSON.stringify({ 13 13 client_id: `${baseUrl}/oauth-client-metadata.json`, 14 14 client_uri: baseUrl, 15 - redirect_uris: [`${baseUrl}/api/auth/atproto`], 15 + redirect_uris: [`${baseUrl}/oauth/callback`], 16 16 scope: 'atproto transition:generic', 17 17 application_type: 'web', 18 18 token_endpoint_auth_method: 'none',
+1 -1
app/src/components/SignInDialog.tsx
··· 114 114 type="submit" 115 115 disabled={!p().canSubmit || p().isSubmitting} 116 116 > 117 - {p().isSubmitting ? 'redirecting...' : 'sign in'} 117 + {p().isSubmitting ? 'connecting...' : 'sign in'} 118 118 </Button> 119 119 )} 120 120 </form.Subscribe>
+17 -17
app/src/routeTree.gen.ts
··· 10 10 11 11 import { Route as rootRouteImport } from './routes/__root' 12 12 import { Route as IndexRouteImport } from './routes/index' 13 - import { Route as ApiAuthAtprotoRouteImport } from './routes/api/auth/atproto' 13 + import { Route as OauthCallbackRouteImport } from './routes/oauth/callback' 14 14 15 15 const IndexRoute = IndexRouteImport.update({ 16 16 id: '/', 17 17 path: '/', 18 18 getParentRoute: () => rootRouteImport, 19 19 } as any) 20 - const ApiAuthAtprotoRoute = ApiAuthAtprotoRouteImport.update({ 21 - id: '/api/auth/atproto', 22 - path: '/api/auth/atproto', 20 + const OauthCallbackRoute = OauthCallbackRouteImport.update({ 21 + id: '/oauth/callback', 22 + path: '/oauth/callback', 23 23 getParentRoute: () => rootRouteImport, 24 24 } as any) 25 25 26 26 export interface FileRoutesByFullPath { 27 27 '/': typeof IndexRoute 28 - '/api/auth/atproto': typeof ApiAuthAtprotoRoute 28 + '/oauth/callback': typeof OauthCallbackRoute 29 29 } 30 30 export interface FileRoutesByTo { 31 31 '/': typeof IndexRoute 32 - '/api/auth/atproto': typeof ApiAuthAtprotoRoute 32 + '/oauth/callback': typeof OauthCallbackRoute 33 33 } 34 34 export interface FileRoutesById { 35 35 __root__: typeof rootRouteImport 36 36 '/': typeof IndexRoute 37 - '/api/auth/atproto': typeof ApiAuthAtprotoRoute 37 + '/oauth/callback': typeof OauthCallbackRoute 38 38 } 39 39 export interface FileRouteTypes { 40 40 fileRoutesByFullPath: FileRoutesByFullPath 41 - fullPaths: '/' | '/api/auth/atproto' 41 + fullPaths: '/' | '/oauth/callback' 42 42 fileRoutesByTo: FileRoutesByTo 43 - to: '/' | '/api/auth/atproto' 44 - id: '__root__' | '/' | '/api/auth/atproto' 43 + to: '/' | '/oauth/callback' 44 + id: '__root__' | '/' | '/oauth/callback' 45 45 fileRoutesById: FileRoutesById 46 46 } 47 47 export interface RootRouteChildren { 48 48 IndexRoute: typeof IndexRoute 49 - ApiAuthAtprotoRoute: typeof ApiAuthAtprotoRoute 49 + OauthCallbackRoute: typeof OauthCallbackRoute 50 50 } 51 51 52 52 declare module '@tanstack/solid-router' { ··· 58 58 preLoaderRoute: typeof IndexRouteImport 59 59 parentRoute: typeof rootRouteImport 60 60 } 61 - '/api/auth/atproto': { 62 - id: '/api/auth/atproto' 63 - path: '/api/auth/atproto' 64 - fullPath: '/api/auth/atproto' 65 - preLoaderRoute: typeof ApiAuthAtprotoRouteImport 61 + '/oauth/callback': { 62 + id: '/oauth/callback' 63 + path: '/oauth/callback' 64 + fullPath: '/oauth/callback' 65 + preLoaderRoute: typeof OauthCallbackRouteImport 66 66 parentRoute: typeof rootRouteImport 67 67 } 68 68 } ··· 70 70 71 71 const rootRouteChildren: RootRouteChildren = { 72 72 IndexRoute: IndexRoute, 73 - ApiAuthAtprotoRoute: ApiAuthAtprotoRoute, 73 + OauthCallbackRoute: OauthCallbackRoute, 74 74 } 75 75 export const routeTree = rootRouteImport 76 76 ._addFileChildren(rootRouteChildren)
+1 -1
app/src/routes/api/auth/atproto.tsx app/src/routes/oauth/callback.tsx
··· 12 12 import { encrypt } from '~/server/crypto.server'; 13 13 import { prisma } from '~/server/db.server'; 14 14 15 - export const Route = createFileRoute('/api/auth/atproto')({ 15 + export const Route = createFileRoute('/oauth/callback')({ 16 16 component: OAuthCallback, 17 17 }); 18 18