Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Conversation

maxim-pop
Copy link
Contributor

Perform a separate call to server to check for authentication before making an upload release file call.

@msftclas
Copy link

Hi @maxim-pop, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Max Porpylev). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Copy link
Contributor

@richardhuaaa richardhuaaa left a comment

Choose a reason for hiding this comment

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

Looks great!!


public isAuthenticated(): Promise<boolean> {
return Promise<boolean>((resolve, reject, notify) => {
public isAuthenticatedWithMessage(): Promise<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency with the other methods in the SDK, could we change this to ensureAuthenticated(), and return a void promise that resolves if authenticated, and rejects if not? Then the CLI doesn't need to construct an error object, and any external users of the SDK might also find this function useful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


public isAuthenticated(): Promise<boolean> {
return Promise<boolean>((resolve, reject, notify) => {
public isAuthenticatedWithMessage(): Promise<any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

You might be able to just use this.get() like the other methods here

@richardhuaaa
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants