Skip to content
Back to skills

Ios Networking

ASecurity

Store tokens securely in the Keychain, not in `UserDefaults` or hardcoded in code. For requests, inject the token into every `URLRequest` as: `Authorization: Bearer <token>` Good pattern on iOS: - Keep a small auth/token store that reads the current access token from Keychain - Centralize request building so auth headers are added in one place - If you use Alamofire, use a `RequestInterceptor` to attach the bearer token automatically - On `401 Unauthorized`, refresh the token, save the new to...

  • 584 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill ios-networking --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios Networking?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios Networking
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-ios-networking-70fd528c/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-networking-70fd528c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Store tokens securely in the Keychain, not in `UserDefaults` or hardcoded in code.

For requests, inject the token into every `URLRequest` as:

`Authorization: Bearer <token>`

Good pattern on iOS:

- Keep a small auth/token store that reads the current access token from Keychain
- Centralize request building so auth headers are added in one place
- If you use Alamofire, use a `RequestInterceptor` to attach the bearer token automatically
- On `401 Unauthorized`, refresh the token, save the new token, and retry the request once
- Set reasonable request timeouts and avoid leaking tokens into logs

If you use `URLSession`, wrap this in an API client so token handling is not repeated across screens. If you use Alamofire, `RequestInterceptor` is the cleanest place for both header injection and refresh-on-retry behavior.

Files in this skill

  • eval-1.baseline.md668 B
  • eval-1.with-skill.md595 B
  • eval-2.baseline.md944 B
  • eval-2.with-skill.md828 B
  • eval-3.baseline.md1.1 KB
  • eval-3.with-skill.md1002 B
  • trigger-1.md127 B
  • trigger-2.md164 B
  • trigger-3.md137 B
  • trigger-4.md137 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.