Add Bearer token | WordPress.org

i have a issue of add Add Bearer token in webview. i added the token in rest api end points like this

'securityDefinitions' => [
                'securitySchemes' => [
                    'bearerAuth' => [
                        'type' => 'http',
                        'scheme' => 'bearer',
                        'bearerFormat' => 'JWT',
                        'value' => 'ThisIsASampleToken123'
                    ],
                ]
            ]

but in webview when i test my api the token will be empty. can someone guide me how can add a header option in webview or any other option ?
thanku for your help.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer