没有收到Google OAuth访问令牌

时间:2019-06-24 06:25:29

标签: react-native-ios google-oauth2 google-login react-native-firebase

我使用react-native-google-signi n软件包,一切正常,数据可以正确返回,但是访问令牌将使用Authenticated Firebase enter image description here

react-native-firebase软件包中的代码段

function init() {
    let img = new Image();
    img.src = "image/600×800.png";
    img.onload = function () {
        myCanvas.width = img.width;
        myCanvas.height = img.height;

        myStage = new createjs.Stage("myCanvas");
        myStage.addChild(myContainer);
        myContainer.addChild(myBmp);


        // Image rotation
        let v = myBmp.getBounds();
        let x = v.width / 2;
        let y = v.height / 2;
        myBmp.regX = x;
        myBmp.regY = y;
        myBmp.rotation += 90;
        myBmp.x = y;
        myBmp.y = x;
        myCanvas.width = v.height;
        myCanvas.height = v.width;


        // Blur range setting
        let maskImage = myBmp.clone();
        let maskShape = new createjs.Shape();
        maskShape.graphics.beginFill("#FFF");
        maskShape.graphics.drawRect(100, 300, 100, 100);
        maskImage.set({ mask: maskShape });

        // Cutting range blur
        blurFilter = new createjs.BlurFilter(15, 15, 1);
        maskImage.filters = [blurFilter];
        maskImage.cache(100, 300, 100, 100);


        // Shape blur
        var shape = new createjs.Shape().set({ x: 100, y: 100 });
        shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 50);
        var blurFilter = new createjs.BlurFilter(5, 5, 1);
        shape.filters = [blurFilter];
        var bounds = blurFilter.getBounds();
        shape.cache(-50 + bounds.x, -50 + bounds.y, 100 + bounds.width, 100 + bounds.height);

        myContainer.addChild(maskImage);
        myContainer.addChild(shape);

        myStage.update();
    };
}

发生错误的必需访问令牌

enter image description here

0 个答案:

没有答案