Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access for non-registered users #475

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

dzikowski
Copy link
Collaborator

No description provided.

Signed-off-by: Jakub Dzikowski <jakub.t.dzikowski@gmail.com>
Comment on lines -70 to +68
// will throw error for legacy auth if the addr is missing
const address = dto.signing === SigningScheme.TON ? ctx.callingUserTonAddress : ctx.callingUserEthAddress;
const profile = await PublicKeyService.getUserProfile(ctx, address);

if (profile === undefined) {
throw new NotFoundError(`UserProfile not found for ${ctx.callingUser}`, {
signature: dto.signature,
user: ctx.callingUser
});
}

return profile;
return ctx.callingUserProfile;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this way we can also return default profile here

@dzikowski dzikowski changed the title Allow anonymous access Allow access for non-registered users Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant