mirror of
https://github.com/openai/codex.git
synced 2026-04-28 16:45:54 +00:00
Move auth code into login crate (#15150)
- Move the auth implementation and token data into codex-login. - Keep codex-core re-exporting that surface from codex-login for existing callers. --------- Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -789,8 +789,10 @@ fn minimal_jwt() -> String {
|
||||
}
|
||||
|
||||
fn build_tokens(access_token: &str, refresh_token: &str) -> TokenData {
|
||||
let mut id_token = IdTokenInfo::default();
|
||||
id_token.raw_jwt = minimal_jwt();
|
||||
let id_token = IdTokenInfo {
|
||||
raw_jwt: minimal_jwt(),
|
||||
..Default::default()
|
||||
};
|
||||
TokenData {
|
||||
id_token,
|
||||
access_token: access_token.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user