Skip to main content
Version: Next

AuthProviderRouteHandlers.frameHandler()

Home > @backstage/plugin-auth-node > AuthProviderRouteHandlers > frameHandler

Once the user signs in or consents in the OAuth screen, the auth provider redirects to the callbackURL which is handled by this method.

Request - to contain a nonce cookie and a 'state' query parameter Response - postMessage to the window with a payload that contains accessToken, expiryInSeconds?, idToken? and scope. - sets a refresh token cookie if the auth provider supports refresh tokens

Signature:

frameHandler(req: Request, res: Response): Promise<void>;

Parameters

Parameter

Type

Description

req

Request

res

Response

**Returns:**

Promise<void>