nuxt.js call stack size render issue when login with IBM App Id

64 views Asked by At

I have a problem using IBM App Id and Nuxt.js project. When I am trying to do the signIn method from IBM AppId, it thows an error, error setAlgAndProvider hash alg set fail alg=sha256/RangeError: Maximum call stack size exceeded

that's my code from my login component:

<template>
    <div class="login" @click="login">
        CLICK TO LOGIN
    </div>
</template>
<script>
export default {
    name: "Login",
    data: () => ({
        appID: null
    }),
    mounted() {
        this.appID = new AppID();
        this.init();
    },
    methods: {
        async init() {
            await this.appID.init({
                clientId: '************',
                discoveryEndpoint: '********'
            });
        },
        async login() {
            const tokens = await this.appID.signin();
            console.log("***TOKENS***", tokens);
        }
    }
}
</script>

Any ideas? I see that error on my browser (attached image)

error

0

There are 0 answers