Skip to content

Commit

Permalink
feat: refreshToken request(#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
sozohoy committed Feb 29, 2024
1 parent b49b0e2 commit 0b0fda0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions SUWIKI/SUWIKI/Core/Network/APIProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,19 @@ class APIProvider {
.request(target)
.serializingDecodable()
.value
/// response()둜 μˆ˜μ •ν•΄μ•Ό 함
}

static func requestRefreshToken<T: Decodable>(
_ object: T.Type,
target: TargetType,
completion: @escaping (DataResponse<T, AFError>) -> Void) {
AlamofireManager
.shared
.session
.request(target)
.responseDecodable { response in
completion(response)
}
}
}

0 comments on commit 0b0fda0

Please sign in to comment.