Skip to content

Commit d8561f6

Browse files
Romick2005mikehardy
authored andcommitted
#166 Add uuid generation.
1 parent 2bba6a9 commit d8561f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example/app.shared.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import "react-native-get-random-values";
2+
import { v4 as uuid } from "uuid";
3+
14
export function getAppleAuthConfig() {
25

36
// Generate secure, random values for state and nonce
4-
const nonce = "uio";//uuid();
5-
const state = "uio";//uuid();
7+
const nonce = uuid();
8+
const state = uuid();
69

710
// https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/incorporating_sign_in_with_apple_into_other_platforms
811
const appleAuthConfig = {

0 commit comments

Comments
 (0)