This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# KEYCLOAK BASE URL | |
KEYCLOAK_BASE_URL= | |
# KEYCLOAK CLIENT SECRET | |
KEYCLOAK_CLIENT_SECRET= | |
# KEYCLOAK CLIENT ID | |
KEYCLOAK_CLIENT_ID= | |
# BASE URL FOR NEXT AUTH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: Keycloak Account API | |
version: 20.0.3 | |
description: | | |
Derived from the code at https://github.com/keycloak/keycloak/blob/main/services/src/main/java/org/keycloak/services/resources/account/AccountRestService.java | |
components: | |
securitySchemes: | |
access_token: | |
type: http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MARK: - Withdrawing.swift | |
import Foundation | |
protocol Withdrawing { | |
func capacity(amount: Int) -> Int | |
} | |
extension Withdrawing { | |
func chained(withNext next: Withdrawing) -> Withdrawing { | |
WithdrawingDecorator(main: self, relief: next) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
enum FeedItem { | |
case article(Article) | |
case ad(Ad) | |
} | |
struct Article: Decodable { | |
let id: UInt | |
let title: String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileprivate actor SubSequenceManager<Base: AsyncSequence & Sendable> where Base.Element: Sendable { | |
fileprivate typealias Element = Base.Element | |
// Private | |
private var base: Base | |
private var continuations: [String : AsyncStream<Base.Element>.Continuation] = [:] | |
private var subscriptionTask: Task<Void, Never>? | |
private var actions: [StreamAction<Base.Element>] = [] | |
// MARK: Initialization |