Make scope error message friendlier
This commit is contained in:
@@ -18,7 +18,8 @@ export default defineOAuthStravaEventHandler({
|
|||||||
if (!hasEnoughScope(scope)) {
|
if (!hasEnoughScope(scope)) {
|
||||||
throw createError({
|
throw createError({
|
||||||
statusCode: 403,
|
statusCode: 403,
|
||||||
message: "Insufficient scope",
|
message:
|
||||||
|
"Insufficient authentication scope. Please make sure all required permissions are allowed during Strava authentication process.",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user