Skip to content

Conversation

NhienLam
Copy link
Contributor

@NhienLam NhienLam commented Nov 2, 2023

Currently only supports Apple OAuth Access token revocation.

NhienLam and others added 2 commits November 2, 2023 15:50
* Implement revokeAccessToken

* Fix token unit tests

* Move ENDPOINT.TOKEN to /api/index.ts

* Add unit tests

* Set tenantId and remove redirectUri

* Run doc generation and fix Lint errors

* Remove unspecified token type
Copy link

changeset-bot bot commented Nov 2, 2023

🦋 Changeset detected

Latest commit: 0a26819

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/auth Minor
firebase Minor
@firebase/auth-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 2, 2023

Size Report 1

Affected Products

  • @firebase/auth

    TypeBase (ff1a6ec)Merge (9c3732c)Diff
    browser176 kB177 kB+559 B (+0.3%)
    cordova204 kB205 kB+875 B (+0.4%)
    esm5229 kB230 kB+875 B (+0.4%)
    main174 kB175 kB+1.02 kB (+0.6%)
    module176 kB177 kB+559 B (+0.3%)
    react-native193 kB194 kB+1.03 kB (+0.5%)
  • @firebase/auth/cordova

    TypeBase (ff1a6ec)Merge (9c3732c)Diff
    browser204 kB205 kB+875 B (+0.4%)
    module204 kB205 kB+875 B (+0.4%)
  • @firebase/auth/internal

    TypeBase (ff1a6ec)Merge (9c3732c)Diff
    browser187 kB187 kB+559 B (+0.3%)
    esm5243 kB244 kB+875 B (+0.4%)
    main210 kB211 kB+1.03 kB (+0.5%)
    module187 kB187 kB+559 B (+0.3%)
  • bundle

    TypeBase (ff1a6ec)Merge (9c3732c)Diff
    auth (Anonymous)73.1 kB73.4 kB+313 B (+0.4%)
    auth (EmailAndPassword)80.9 kB81.3 kB+313 B (+0.4%)
    auth (GoogleFBTwitterGitHubPopup)99.7 kB100 kB+313 B (+0.3%)
    auth (GooglePopup)97.0 kB97.3 kB+313 B (+0.3%)
    auth (GoogleRedirect)97.2 kB97.5 kB+313 B (+0.3%)
    auth (Phone)83.3 kB83.7 kB+313 B (+0.4%)
  • firebase

    TypeBase (ff1a6ec)Merge (9c3732c)Diff
    firebase-auth-compat.js136 kB136 kB+277 B (+0.2%)
    firebase-auth-cordova.js173 kB174 kB+745 B (+0.4%)
    firebase-auth.js146 kB147 kB+432 B (+0.3%)
    firebase-compat.js778 kB778 kB+277 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/cIx7zZrpPp.html

@NhienLam NhienLam requested review from a team as code owners November 2, 2023 23:45
Copy link
Contributor

github-actions bot commented Nov 2, 2023

Changeset File Check ✅

  • No modified packages are missing from the changeset file.
  • No changeset formatting errors detected.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 2, 2023

Size Analysis Report 1

This report is too large (249,383 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/m4V5HTCg2S.html

@@ -514,6 +519,26 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
});
}

/**
* Revokes the given access token. Currently only supports Apple OAuth Access token.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Revokes the given access token. Currently only supports Apple OAuth Access token.
* Revokes the given access token. Currently only supports Apple OAuth access tokens.

@@ -245,6 +245,14 @@ export function signOut(auth: Auth): Promise<void> {
return getModularInstance(auth).signOut();
}

/**
* Revokes the given access token. Currently only supports Apple OAuth Access token.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Revokes the given access token. Currently only supports Apple OAuth Access token.
* Revokes the given access token. Currently only supports Apple OAuth access tokens.

Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

LGTM based on Kevin's review, thanks!

@NhienLam NhienLam merged commit 5f496e4 into master Nov 6, 2023
@NhienLam NhienLam deleted the token-revoke branch November 6, 2023 22:31
@google-oss-bot google-oss-bot mentioned this pull request Nov 7, 2023
prameshj pushed a commit that referenced this pull request Nov 13, 2023
* Implement revokeAccessToken public api (#7541)

* Implement revokeAccessToken

* Fix token unit tests

* Move ENDPOINT.TOKEN to /api/index.ts

* Add unit tests

* Set tenantId and remove redirectUri

* Run doc generation and fix Lint errors

* Remove unspecified token type

* Clean up demo app

* Add changeset

* Update changeset

* Fix refdoc comments

* Run yarn docgen devsite
@firebase firebase locked and limited conversation to collaborators Dec 7, 2023
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.

6 participants