Make scope error message friendlier

This commit is contained in:
2025-04-27 21:36:15 +03:00
parent f03d584240
commit 026cd66559

View File

@@ -18,7 +18,8 @@ export default defineOAuthStravaEventHandler({
if (!hasEnoughScope(scope)) {
throw createError({
statusCode: 403,
message: "Insufficient scope",
message:
"Insufficient authentication scope. Please make sure all required permissions are allowed during Strava authentication process.",
});
}