使用哥特获取令牌谷歌云时出错



I'm using {:ok, goth} = Goth.Token.for_scope("https://www.googleapis.com/auth/devstorage.full_control")但是我看到了一个错误。请帮助我

** (exit) an exception was raised: ** (UndefinedFunctionError) function :crypto.mpint/1 is undefined or private (crypto) :crypto.mpint(19687873431742193920055970243130294467124206658682087298983794038798216955530975915146333586732314900700035611611045789143545904247799428447896803420118324471667046274052296120024954651561469080093219328190691149886440049200669636272584661976356321702914680136369124759272732574776698998044554776915282967732669956832401458331945711479325049514685797410840542208523089896590986235120222095570675226125560522026179882816977851505433864383972624362893774956738669017687990725035030542706539434148824251987312659383648295704127681204473207295376320651645980971185202320992998884262991006767805018245431366563316696488933)

请检查您使用的是Goth 0.6.0或更高版本,以便json_web_token更新到不依赖mpint/1的最新版本。

更详细的解释:

:crypto.mpint/1在最新版本的 Erlang/OTP 20 中删除,因为它在几个版本前就被弃用了。

Goth 有一个名为 json_web_token 的依赖项,该依赖项在 2017 年年中之前一直使用 mpint/1。从那时起,版本 0.2.10 作为紧急修复程序发布,用于删除加密包中的mpint/1,您可以看到 Goth 在夏天也更新了此依赖项 - https://github.com/peburrows/goth/commit/b983dc15447ee6b59a0f170f5a47da9e298549ff .

最新更新