MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / computeCodeChallenge

Method computeCodeChallenge

ui-linux/src/oauthservice.cpp:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156QString OAuthService::computeCodeChallenge(const QString &verifier)
157{
158 QByteArray hash = QCryptographicHash::hash(verifier.toLatin1(), QCryptographicHash::Sha256);
159 return hash.toBase64(QByteArray::Base64UrlEncoding | QByteArray::OmitTrailingEquals);
160}
161
162void OAuthService::startAuth(const QString &provider, const QString &tokenPath)
163{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected