0

我在使用 IBM App Id 和 Nuxt.js 项目时遇到问题。当我尝试从 IBM AppId 执行登录方法时,它会出错,error setAlgAndProvider hash alg set fail alg=sha256/RangeError: Maximum call stack size exceeded

这是我的登录组件中的代码:

<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>

有任何想法吗?我在浏览器上看到该错误(附图)

错误

4

0 回答 0