Fix log message in GitHub OAuth callback route
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1348c5479e
commit
5957e8104c
@ -45,7 +45,7 @@ export async function GET(request: Request): Promise<Response> {
|
|||||||
const tokens = await github.validateAuthorizationCode(code);
|
const tokens = await github.validateAuthorizationCode(code);
|
||||||
|
|
||||||
// Log zur Fehlersuche
|
// Log zur Fehlersuche
|
||||||
console.log(`GitHub OAuth Token-Validierung erfolgreich, verwendete Callback-URL: ${github.redirectURI}`);
|
console.log("GitHub OAuth Token-Validierung erfolgreich");
|
||||||
|
|
||||||
const githubUserResponse = await fetch("https://git.i.mercedes-benz.com/api/v3/user", {
|
const githubUserResponse = await fetch("https://git.i.mercedes-benz.com/api/v3/user", {
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -30,7 +30,7 @@ try {
|
|||||||
// Aktualisiere auch die Logging-Nachricht
|
// Aktualisiere auch die Logging-Nachricht
|
||||||
content = content.replace(
|
content = content.replace(
|
||||||
/console\.log\(`GitHub OAuth Token-Validierung mit Callback-URL: \${OAUTH_CALLBACK_URL}\`\);/g,
|
/console\.log\(`GitHub OAuth Token-Validierung mit Callback-URL: \${OAUTH_CALLBACK_URL}\`\);/g,
|
||||||
'console.log(`GitHub OAuth Token-Validierung erfolgreich, verwendete Callback-URL: ${github.redirectURI}`);'
|
'console.log("GitHub OAuth Token-Validierung erfolgreich");'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Schreibe die aktualisierte Datei
|
// Schreibe die aktualisierte Datei
|
||||||
|
Loading…
x
Reference in New Issue
Block a user