Skip to content

Commit

Permalink
#166 Add uuid generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Romick2005 authored and mikehardy committed Nov 8, 2023
1 parent 2bba6a9 commit d8561f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/app.shared.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import "react-native-get-random-values";
import { v4 as uuid } from "uuid";

export function getAppleAuthConfig() {

// Generate secure, random values for state and nonce
const nonce = "uio";//uuid();
const state = "uio";//uuid();
const nonce = uuid();
const state = uuid();

// https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/incorporating_sign_in_with_apple_into_other_platforms
const appleAuthConfig = {
Expand Down

0 comments on commit d8561f6

Please sign in to comment.