alpha
Login
or
Join now
atpota.to
/
flushes.app
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
try again
author
damedotblog
date
1 year ago
(Mar 11, 2025, 12:59 PM -0400)
commit
3a1cd393
3a1cd3938dea99f09c700a8e9cebca1ecb446ce9
parent
7420cb13
7420cb13f36f2a4145198a87c78e8832d8a923ac
+4
-1
1 changed file
Expand all
Collapse all
Unified
Split
app
src
app
auth
callback
page.tsx
+4
-1
app/src/app/auth/callback/page.tsx
Reviewed
···
135
135
console.log('Using auth server for token exchange:', authServer);
136
136
console.log('Original PDS endpoint (iss):', tokenPdsEndpoint);
137
137
138
138
+
// Convert null to undefined for type compatibility
139
139
+
const originalPdsEndpoint = tokenPdsEndpoint === null ? undefined : tokenPdsEndpoint;
140
140
+
138
141
tokenResponse = await getAccessToken(
139
142
code,
140
143
codeVerifier,
141
144
keyPair,
142
145
authServer,
143
146
undefined, // No nonce yet
144
144
-
tokenPdsEndpoint // Pass the original PDS endpoint (from iss)
147
147
+
originalPdsEndpoint // Pass the original PDS endpoint (converted from null to undefined if needed)
145
148
);
146
149
} catch (tokenError: any) {
147
150
console.error('Token exchange error:', tokenError);