From 4b2d32b0ea5cd0bd259b301253280dd6bc9520e6 Mon Sep 17 00:00:00 2001 From: Aleksandr Shushkov Date: Sun, 16 Jun 2024 22:20:24 +0300 Subject: [PATCH] OAuth compilant authorization header --- Sources/GitLabSwift/Core/GLApi+Config.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/GitLabSwift/Core/GLApi+Config.swift b/Sources/GitLabSwift/Core/GLApi+Config.swift index 786737e..ae7bb00 100644 --- a/Sources/GitLabSwift/Core/GLApi+Config.swift +++ b/Sources/GitLabSwift/Core/GLApi+Config.swift @@ -75,6 +75,6 @@ public struct Config { func authenticationToken() -> (key: String, value: String)? { guard let token else { return nil } - return ("PRIVATE-TOKEN", token) + return ("Authorization", "Bearer " + token) } }