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

Update TinyDelete.java #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update TinyDelete.java #287

wants to merge 1 commit into from

Conversation

yashb196
Copy link
Collaborator

Tried integrating logic where the delete functionality will either use JSESSION ID or Bearer Token.

@yashb196 yashb196 added the enhancement New feature or request label Aug 16, 2024
@yashb196 yashb196 self-assigned this Aug 16, 2024
*/
private boolean validateBearerToken(String token) {
try {
FirebaseToken decodedToken = FirebaseAuth.getInstance().verifyIdToken(token);
Copy link
Member

Choose a reason for hiding this comment

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

My guess is this is failing because you haven't provided connection parameters to any Firebase instance anywhere.

// Token is valid
return true;
} catch (Exception e) {
// Invalid token
Copy link
Member

Choose a reason for hiding this comment

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

Since you are just returning false here, we never see what Exception this is. You'll want to know what specific Exception is happening here, since it has to do with the firebase you want to access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants