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

Parse.User.loginAs method not available #2255

Closed
3 of 4 tasks
rjcodedev opened this issue Jul 30, 2024 · 10 comments
Closed
3 of 4 tasks

Parse.User.loginAs method not available #2255

rjcodedev opened this issue Jul 30, 2024 · 10 comments
Labels
state:duplicate Duplicate of already reported issue type:feature New feature or improvement of existing feature

Comments

@rjcodedev
Copy link

rjcodedev commented Jul 30, 2024

New Issue Checklist

Issue Description

"I tried to log in a user directly using the Parse.User.loginAs method in the Parse JS SDK, but it is not available. However, this feature was merged from version 4.2.0 as shown in this issue: Parse JS SDK Issue #1875."

Actual Outcome

Not able to import from Parse JS SDK

Expected Outcome

It must be available in the Parse JS SDK version 5.3.0, and users can log in with the master key using this method.

Server

  • Parse Server version: 7.1.0
  • Operating system: windows
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): mongodb
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • Parse JS SDK version: 5.3.0
Copy link

parse-github-assistant bot commented Jul 30, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza
Copy link
Member

mtrezza commented Jul 30, 2024

What do you mean by "not available"?

@rjcodedev
Copy link
Author

Screenshot 2024-08-01 140937

hey @mtrezza , see this image when i try to import it is not available

@mtrezza
Copy link
Member

mtrezza commented Aug 1, 2024

This seems to be just the IDE auto-complete, but does the method work? Also, which Parse JS SDK version is your IDE using here?

Related: #2012

@rjcodedev
Copy link
Author

rjcodedev commented Aug 1, 2024

@mtrezza how do I check Parse js sdk version in my IDE
In my project I am using Parse : 5.3.0, Parse-server: 7.2.0

@rjcodedev rjcodedev changed the title Parse.User.loginAs method not working Parse.User.loginAs method not available Aug 6, 2024
@rjcodedev
Copy link
Author

rjcodedev commented Aug 6, 2024

hey @mtrezza , Parse.User.loginAs method is working but not available in suggestion.
If you know how to update a package from suggestions, please let me know.

I am using VS-code

Thank you

@mtrezza
Copy link
Member

mtrezza commented Aug 7, 2024

@dplewis did a lot of the typescript conversion in this repo, maybe he could take a look...

@dplewis
Copy link
Member

dplewis commented Aug 7, 2024

@rjcodedev You can submit a PR to @types/parse to add this missing method.

@mtrezza
Copy link
Member

mtrezza commented Aug 7, 2024

@dplewis wasn't the purpose of #2012 to remove the reliance on @types/parse and instead use the TS definition that is generated by us?

Explained in #2012 (comment)

@mtrezza
Copy link
Member

mtrezza commented Aug 7, 2024

Closing as duplicate of #2012.

@mtrezza mtrezza added state:duplicate Duplicate of already reported issue type:feature New feature or improvement of existing feature labels Aug 7, 2024
@mtrezza mtrezza closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:duplicate Duplicate of already reported issue type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

3 participants