Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request is missing required authentication credential

I am trying to send FCM message through POSTMAN. I have added the server key, the one from cloud messaging in settings of firebase console.

enter image description here

error

What is missing here?

like image 753
Ritesh goel Avatar asked Feb 10 '18 17:02

Ritesh goel


1 Answers

The example in the documentation for authorizing HTTP v1 send requests shows the Authorization header value starts with Bearer not key=:

headers: {
  'Authorization': 'Bearer ' + accessToken
}
like image 77
Bob Snyder Avatar answered Oct 28 '22 00:10

Bob Snyder