Rank 1: Thread
Hello guys,
I'm getting the following error: (role: applications) missing scope (public) when performing an email verification:
public async verifyUserEmail(userId: string, secret: string): Promise<void> {
await this.accountService.createSession(userId, secret);
await this.accountService.completeVerification(userId, secret); // This call trigger the error.
await this.userService.updateUserLabel(userId, [
AuthProcessLabels.STEP_EMAIL_VERIFIED,
]);
}
// Other class
public async completeVerification(
userId: string,
secret: string
): Promise<void> {
await this.account.updateVerification(userId, secret);
}
Even if the call return an error it still set my account as verified email and the execution status as completed.
For testing purpose, all the permissions are enabled.