auth-node: deprecate getBearerTokenFromAuthorizationHeader
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Carl-Erik Bergström <cbergstrom@spotify.com> Co-authored-by: blam <ben@blam.sh> Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-auth-node': patch
|
||||
---
|
||||
|
||||
Deprecated the `getBearerTokenFromAuthorizationHeader` function, which is being replaced by the new `HttpAuthService`.
|
||||
@@ -223,7 +223,7 @@ export class DefaultIdentityClient implements IdentityApi {
|
||||
// @public (undocumented)
|
||||
export function encodeOAuthState(state: OAuthState): string;
|
||||
|
||||
// @public
|
||||
// @public @deprecated
|
||||
export function getBearerTokenFromAuthorizationHeader(
|
||||
authorizationHeader: unknown,
|
||||
): string | undefined;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
* call it directly with e.g. the output of `req.header('authorization')`
|
||||
* without first checking that it exists.
|
||||
*
|
||||
* @deprecated Use the `credentials` method of `HttpAuthService` from `@backstage/backend-plugin-api` instead
|
||||
* @public
|
||||
*/
|
||||
export function getBearerTokenFromAuthorizationHeader(
|
||||
|
||||
Reference in New Issue
Block a user