ci: format
This commit is contained in:
parent
5055e4a36b
commit
6cb5ae9dda
2 changed files with 8 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
minimum_pre_commit_version: '3.5.0'
|
||||
minimum_pre_commit_version: "3.5.0"
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/JohnnyMorganz/StyLua
|
||||
|
|
|
|||
|
|
@ -201,16 +201,13 @@ function M.authorize()
|
|||
|
||||
local sha_result = vim.system({ 'printf', '%s', code_verifier }, { text = true }):wait()
|
||||
local sha_pipe = vim
|
||||
.system(
|
||||
{
|
||||
'sh',
|
||||
'-c',
|
||||
'printf "%s" "'
|
||||
.. code_verifier
|
||||
.. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="',
|
||||
},
|
||||
{ text = true }
|
||||
)
|
||||
.system({
|
||||
'sh',
|
||||
'-c',
|
||||
'printf "%s" "'
|
||||
.. code_verifier
|
||||
.. '" | openssl dgst -sha256 -binary | openssl base64 -A | tr "+/" "-_" | tr -d "="',
|
||||
}, { text = true })
|
||||
:wait()
|
||||
local code_challenge = sha_pipe.stdout or ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue