parse-community / Parse-SDK-JS

The JavaScript SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
1.32k stars 596 forks source link

`Parse.User.loginAs` method not available #2255

Closed rjcodedev closed 1 month ago

rjcodedev commented 1 month ago

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

Database

Client

parse-github-assistant[bot] commented 1 month ago

Thanks for opening this issue!

mtrezza commented 1 month ago

What do you mean by "not available"?

rjcodedev commented 1 month ago
Screenshot 2024-08-01 140937

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

mtrezza commented 1 month ago

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: https://github.com/parse-community/Parse-SDK-JS/issues/2012

rjcodedev commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

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

dplewis commented 1 month ago

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

mtrezza commented 1 month ago

@dplewis wasn't the purpose of https://github.com/parse-community/Parse-SDK-JS/issues/2012 to remove the reliance on @types/parse and instead use the TS definition that is generated by us?

Explained in https://github.com/parse-community/Parse-SDK-JS/issues/2012#issuecomment-2273656431

mtrezza commented 1 month ago

Closing as duplicate of https://github.com/parse-community/Parse-SDK-JS/issues/2012.