firebase / firebase/functions-samples

[BUG] in sample: instagram-auth

Open
#869 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

### Which sample has a bug?
The Instagram-auth sample has a bug due to the fact that the instagram api no longer supports the "OAUTH_SCOPES = 'basic' " It is changed to allow using " user_profile " or " user_media "

**Sample name or URL where you found the bug**

### How to reproduce the issue

Running the function will give error as
**Failing Function code used (if you modified the sample)**
Exact same as mentioned in the tutorial
**Steps to set up and reproduce**
Just follow the instruction mentioned in the readme.md file

### Debug output

{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope: []"}

**Errors in the
[console logs](https://console.firebase.google.com/project/_/functions/logs?search=&severity=DEBUG)**

**Screenshots**

### Expected behavior
Expected is that the authocization screen will popup and confirm user to login but instead the developer will recieve the error message as "invalid scope[]"

### Actual behavior
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope: []"}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.