Skip to content

Commit 99f5a9f

Browse files
committed
Run doc generation and fix Lint errors
1 parent dd16912 commit 99f5a9f

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

docs-devsite/auth.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Firebase Authentication
3535
| [isSignInWithEmailLink(auth, emailLink)](./auth.md#issigninwithemaillink) | Checks if an incoming link is a sign-in with email link suitable for [signInWithEmailLink()](./auth.md#signinwithemaillink)<!-- -->. |
3636
| [onAuthStateChanged(auth, nextOrObserver, error, completed)](./auth.md#onauthstatechanged) | Adds an observer for changes to the user's sign-in state. |
3737
| [onIdTokenChanged(auth, nextOrObserver, error, completed)](./auth.md#onidtokenchanged) | Adds an observer for changes to the signed-in user's ID token. |
38+
| [revokeAccessToken(auth, token)](./auth.md#revokeaccesstoken) | Revokes the given access token. Currently only supports Apple OAuth Access token. |
3839
| [sendPasswordResetEmail(auth, email, actionCodeSettings)](./auth.md#sendpasswordresetemail) | Sends a password reset email to the given email address. |
3940
| [sendSignInLinkToEmail(auth, email, actionCodeSettings)](./auth.md#sendsigninlinktoemail) | Sends a sign-in email link to the user with the specified email. |
4041
| [setPersistence(auth, persistence)](./auth.md#setpersistence) | Changes the type of persistence on the [Auth](./auth.auth.md#auth_interface) instance for the currently saved <code>Auth</code> session and applies this type of persistence for future sign-in requests, including sign-in with redirect requests. |
@@ -598,6 +599,27 @@ export declare function onIdTokenChanged(auth: Auth, nextOrObserver: NextOrObser
598599

599600
[Unsubscribe](./util.md#unsubscribe)
600601

602+
## revokeAccessToken()
603+
604+
Revokes the given access token. Currently only supports Apple OAuth Access token.
605+
606+
<b>Signature:</b>
607+
608+
```typescript
609+
export declare function revokeAccessToken(auth: Auth, token: string): Promise<void>;
610+
```
611+
612+
### Parameters
613+
614+
| Parameter | Type | Description |
615+
| --- | --- | --- |
616+
| auth | [Auth](./auth.auth.md#auth_interface) | |
617+
| token | string | |
618+
619+
<b>Returns:</b>
620+
621+
Promise&lt;void&gt;
622+
601623
## sendPasswordResetEmail()
602624

603625
Sends a password reset email to the given email address.

packages/auth/src/api/authentication/token.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('api/authentication/revokeToken', () => {
168168
const mock = mockEndpoint(Endpoint.REVOKE_TOKEN, {});
169169

170170
auth.tenantId = 'tenant-id';
171-
const response = await revokeToken(auth, request);
171+
await revokeToken(auth, request);
172172
// Currently, backend returns an empty response.
173173
expect(mock.calls[0].request).to.eql({ ...request, tenantId: 'tenant-id' });
174174
expect(mock.calls[0].method).to.eq('POST');

packages/auth/src/core/auth/auth_impl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
529529
const request: RevokeTokenRequest = {
530530
providerId: 'apple.com',
531531
tokenType: TokenType.ACCESS_TOKEN,
532-
token: token,
533-
idToken: idToken
532+
token,
533+
idToken
534534
};
535535
if (this.tenantId != null) {
536536
request.tenantId = this.tenantId;

0 commit comments

Comments
 (0)