Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

How to login with premium account? #308

Closed
marcosfromrio opened this issue Aug 11, 2022 · 13 comments
Closed

How to login with premium account? #308

marcosfromrio opened this issue Aug 11, 2022 · 13 comments

Comments

@marcosfromrio
Copy link

I can't find this option.

@gmillerd
Copy link

Steps:

  1. You run the command "grammarly.login", eg from the "command palette" in vscode.
  2. Then you are sent to Grammarly's website to login
  3. Then it redirects you to a website called "https://vscode-extension-grammarly.netlify.app/.netlify/functions/redirect?code=[redacted]" where the website 404's on you.

`Page Not Found
Looks like you've followed a broken link or entered a URL that doesn't exist on this site.

Back to our site

If this is your site, and you weren't expecting a 404 for this path, please visit Netlify's "page not found" support guide for troubleshooting tips.`

@Siddhant-K-code
Copy link
Contributor

Steps:

  1. You run the command "grammarly.login", eg from the "command palette" in vscode.

Or You Can, hit cmd + p. Hit the first option given there

image

@rakr
Copy link

rakr commented Aug 16, 2022

Hi, confirming this issue raised by @gmillerd, just installed this extension, followed the exact same steps and getting the "Page Not Found" error as well.

@Siddhant-K-code
Copy link
Contributor

Hi, confirming this issue raised by @gmillerd, just installed this extension, followed the exact same steps and getting the "Page Not Found" error as well.

Yeah, Commented the same on fix #310 (comment)

@greyhatsec-au
Copy link

Also broken for me, however, found that if you take the URL from the Error Page:
Eg: https://vscode-extension-grammarly.netlify.app/.netlify/functions/redirect?code=nXeh8r...BkKY2U&state=dnNjb2RlOi8vem5jay5ncmFtbWFybHkvYXV0aC9jYWxsYmFjaz93aW5kb3dJZD0x

and replace everything to the ? with vscode://znck.grammarly/auth/callback?windowId=1& I was then able to login.

Making the resulting URL vscode://znck.grammarly/auth/callback?windowId=1&code=nXeh8r...BkKY2U&state=dnNjb2RlOi8vem5jay5ncmFtbWFybHkvYXV0aC9jYWxsYmFjaz93aW5kb3dJZD0x

If you base64 decode the state parameter it will give you the prefix required.

@bagustris
Copy link

I still cannot log in with premium now.
I replaced the error page until ? with vscode://znck.grammarly/auth/callback?windowId=1& but not it does search with Google.

If I removed vscode with https, it turns to This site can’t be reached.

Any solution?

@greyhatsec-au
Copy link

greyhatsec-au commented Aug 17, 2022

I still cannot log in with premium now. I replaced the error page until ? with vscode://znck.grammarly/auth/callback?windowId=1& but not it does search with Google.

It is supposed to open the link with vscode, it sounds like the URL handler has not been configured. You might be able to try this to check if it is registered - microsoft/vscode#116363 (Assuming you're on windows - if not, try Googling how to get the vscode URL handler working)

@bagustris
Copy link

Got it. Previously I did it with chrome, the url handler works on Firefox with Ubuntu 20.04.

@vikiehm
Copy link

vikiehm commented Aug 23, 2022

Hi! Got the same problem ... Did anybody find a solution for Mac?

@ricardoavelino
Copy link

I have the same issue. Extension version 0.23.9 (pre-released). How can I fix it in mac?

@ognjenio
Copy link

ognjenio commented Aug 25, 2022

I've found that you can do the URL replacement suggested by @greyhatsec-au and then in terminal run

code --open-url "vscode://...."

Running Ubuntu 22.04.

@ricardoavelino
Copy link

ricardoavelino commented Aug 29, 2022

This works for me on mac too. Following @greyhatsec-au's suggestion, I write on VSCode terminal:

code --open-url "vscode://znck.grammarly/auth/callback?windowId=1&........."

in which, after & I put everything that I have after ? in the original link, e.g.:

https://vscode-extension-grammarly.netlify.app/.netlify/functions/redirect?code=nXeh8r...BkKY2U&state=dnNjb2RlOi8vem5jay5ncmFtbWFybHkvYXV0aC9jYWxsYmFjaz93aW5kb3dJZD0x

so my command looks like:

code --open-url "vscode://znck.grammarly/auth/callback?windowId=1& code=nXeh8r...BkKY2U&state=dnNjb2RlOi8vem5jay5ncmFtbWFybHkvYXV0aC9jYWxsYmFjaz93aW5kb3dJZD0x"

@znck
Copy link
Owner

znck commented Sep 9, 2022

I misconfigured Netlify deployment, it should be fixed now.

Related #315

@znck znck closed this as completed Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants